(WIP) Point 1: step functions

This commit is contained in:
gsemaj
2022-04-12 17:12:08 -04:00
parent 5d9dcb8609
commit 82bc94c01c
6 changed files with 168 additions and 163 deletions

View File

@@ -38,6 +38,10 @@ int32_t Player::getID() {
return iID;
}
void Player::step(time_t currTime) {
// no-op
}
int CombatNPC::takeDamage(EntityRef src, int amt) {
/* REFACTOR: all of this logic is strongly coupled to mobs.
@@ -96,6 +100,10 @@ int32_t CombatNPC::getID() {
return id;
}
void CombatNPC::step(time_t currTime) {
// stubbed
}
static std::pair<int,int> getDamage(int attackPower, int defensePower, bool shouldCrit,
bool batteryBoost, int attackerStyle,
int defenderStyle, int difficulty) {