Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions HeavenClient/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ if(HEAVENCLIENT_BUILD_TESTS)
add_test(NAME emote_cooldown COMMAND emote_cooldown_tests)
add_executable(fame_cooldown_tests tests/fame_cooldown.cpp)
add_test(NAME fame_cooldown COMMAND fame_cooldown_tests)
add_executable(summon_rules_tests tests/summon_rules.cpp)
add_test(NAME summon_rules COMMAND summon_rules_tests)
add_executable(chat_flood_guard_tests tests/chat_flood_guard.cpp)
add_test(NAME chat_flood_guard COMMAND chat_flood_guard_tests)
add_executable(char_click_tests tests/char_click.cpp)
Expand Down Expand Up @@ -344,6 +346,9 @@ add_executable(HeavenClient
Gameplay/MapleMap/MapInfo.h
Gameplay/MapleMap/MapMists.cpp
Gameplay/MapleMap/MapMists.h
Gameplay/MapleMap/MapSummons.cpp
Gameplay/MapleMap/MapSummons.h
Gameplay/MapleMap/SummonRules.h
Gameplay/MapleMap/MapMobs.cpp
Gameplay/MapleMap/MapMobs.h
Gameplay/MapleMap/MapNpcs.cpp
Expand Down
1 change: 1 addition & 0 deletions HeavenClient/Character/Buff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ namespace ms
case 43: return HAMSTRING;
case 44: return BLIND;
case 45: return CONCENTRATE;
case 46: return PUPPET;
case 47: return ECHO_OF_HERO;
case 49: return GHOST_MORPH;
case 82: return ENERGY_CHARGE;
Expand Down
5 changes: 5 additions & 0 deletions HeavenClient/Character/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,11 @@ namespace ms
return buffs[stat].value > 0;
}

int16_t Player::get_buff_value(Buffstat::Id stat) const
{
return buffs[stat].value;
}

void Player::change_skill(int32_t skill_id, int32_t skill_level, int32_t masterlevel, int64_t expiration)
{
int32_t old_level = skillbook.get_level(skill_id);
Expand Down
2 changes: 2 additions & 0 deletions HeavenClient/Character/Player.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ namespace ms

// Return whether the buff is active.
bool has_buff(Buffstat::Id stat) const;
// What a buff adds, 0 without it.
int16_t get_buff_value(Buffstat::Id stat) const;

// Change a skill
void change_skill(int32_t skill_id, int32_t level, int32_t masterlevel, int64_t expiration);
Expand Down
Loading
Loading