@aresrpg/aresrpg-sdk
Advanced tools
Comparing version 2.2.0 to 2.2.1
{ | ||
"name": "@aresrpg/aresrpg-sdk", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "General SDK to interract with AresRPG", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -12,3 +12,3 @@ import { experience_to_level } from './experience.js' | ||
/** @type {(character: import("./types.js").SuiCharacter, stat: string) => number} */ | ||
function get_total_stat(character, stat) { | ||
export function get_total_stat(character, stat) { | ||
const base = character[stat] | ||
@@ -64,1 +64,21 @@ const { | ||
} | ||
export const STATISTICS = { | ||
VITALITY: 'vitality', | ||
WISDOM: 'wisdom', | ||
STRENGTH: 'strength', | ||
INTELLIGENCE: 'intelligence', | ||
CHANCE: 'chance', | ||
AGILITY: 'agility', | ||
RANGE: 'range', | ||
MOVEMENT: 'movement', | ||
ACTION: 'action', | ||
CRITICAL: 'critical', | ||
RAW_DAMAGE: 'raw_damage', | ||
CRITICAL_CHANCE: 'critical_chance', | ||
CRITICAL_OUTCOMES: 'critical_outcomes', | ||
EARTH_RESISTANCE: 'earth_resistance', | ||
FIRE_RESISTANCE: 'fire_resistance', | ||
WATER_RESISTANCE: 'water_resistance', | ||
AIR_RESISTANCE: 'air_resistance', | ||
} |
@@ -0,1 +1,21 @@ | ||
export function get_total_stat(character: import("./types.js").SuiCharacter, stat: string): number; | ||
export function get_max_health(character: import("./types.js").SuiCharacter): number; | ||
export namespace STATISTICS { | ||
let VITALITY: string; | ||
let WISDOM: string; | ||
let STRENGTH: string; | ||
let INTELLIGENCE: string; | ||
let CHANCE: string; | ||
let AGILITY: string; | ||
let RANGE: string; | ||
let MOVEMENT: string; | ||
let ACTION: string; | ||
let CRITICAL: string; | ||
let RAW_DAMAGE: string; | ||
let CRITICAL_CHANCE: string; | ||
let CRITICAL_OUTCOMES: string; | ||
let EARTH_RESISTANCE: string; | ||
let FIRE_RESISTANCE: string; | ||
let WATER_RESISTANCE: string; | ||
let AIR_RESISTANCE: string; | ||
} |
117164
3380