- Moved calc_dmg to characters.h

- put vampire into new source files
This commit is contained in:
a25liang
2024-07-02 20:39:48 -04:00
parent eea910ae33
commit 234f06191a
7 changed files with 74 additions and 15 deletions

View File

@ -174,3 +174,9 @@ result character::move_or_attack(const direction dir,
return this->attack(dir,chlist);
}
int calc_dmg(const int ATK, const int DEF) {
return ceil((100 / (100 + DEF)) * ATK);
}