diff options
author | Fate <fate-tmw@googlemail.com> | 2009-09-20 00:30:15 +0000 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2009-09-20 00:30:15 +0000 |
commit | 264bf4fd6dfb501643cf9178e5471e9e0e55152b (patch) | |
tree | 3ac7e832801590219bd62e8c45ccca2ccf86d2dd /src/map/battle.c | |
parent | 162c84a85c288bcb97df44d08e0c0ff271ec102b (diff) | |
download | tmwa-264bf4fd6dfb501643cf9178e5471e9e0e55152b.tar.gz tmwa-264bf4fd6dfb501643cf9178e5471e9e0e55152b.tar.bz2 tmwa-264bf4fd6dfb501643cf9178e5471e9e0e55152b.tar.xz tmwa-264bf4fd6dfb501643cf9178e5471e9e0e55152b.zip |
Initial support for skill pools
Diffstat (limited to 'src/map/battle.c')
-rw-r--r-- | src/map/battle.c | 15 |
1 files changed, 15 insertions, 0 deletions
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) { |