From 264bf4fd6dfb501643cf9178e5471e9e0e55152b Mon Sep 17 00:00:00 2001 From: Fate Date: Sun, 20 Sep 2009 00:30:15 +0000 Subject: Initial support for skill pools --- src/map/battle.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/map/battle.c') diff --git a/src/map/battle.c b/src/map/battle.c index ebc395d..507defd 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -1134,6 +1134,21 @@ int battle_get_mexp(struct block_list *bl) return 0; } +int battle_get_stat(int stat_id /* SP_VIT or similar */, struct block_list *bl) +{ + switch (stat_id) { + case SP_STR: return battle_get_str(bl); + case SP_AGI: return battle_get_agi(bl); + case SP_DEX: return battle_get_dex(bl); + case SP_VIT: return battle_get_vit(bl); + case SP_INT: return battle_get_int(bl); + case SP_LUK: return battle_get_luk(bl); + default: + return 0; + } +} + + // StatusChangeŚn‚ĚŹŠ“ľ struct status_change *battle_get_sc_data(struct block_list *bl) { -- cgit v1.2.3-60-g2f50