mirror of
https://github.com/OpenFusionProject/OpenFusion.git
synced 2025-11-30 04:20:06 +00:00
(WIP) Point 1: step functions
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user