Fixes for damage calculations always using a base power of 0.

This commit is contained in:
2019-12-07 22:09:06 +01:00
parent 262279bd2c
commit 7c642f7df5
5 changed files with 23 additions and 23 deletions

View File

@@ -44,7 +44,7 @@ namespace CreatureLib::Battling {
}
TargetData() = default;
const HitData& GetHit(uint8_t index) const { return _hits[index]; }
HitData* GetHit(uint8_t index) { return &_hits[index]; }
HitData* GetHitPtr(uint8_t index) { return &_hits[index]; }
@@ -75,7 +75,7 @@ namespace CreatureLib::Battling {
bool IsCreatureTarget(Creature* creature) { return _targets.find(creature) != _targets.end(); }
const std::unordered_map<Creature*, TargetData>& GetTargets() { return _targets; }
std::unordered_map<Creature*, TargetData>& GetTargets() { return _targets; }
Creature* GetUser() { return _user; }