removed character::move
This commit is contained in:
@ -75,17 +75,6 @@ void character::discard_level_effects() {
|
||||
std::swap(tmp, effects);
|
||||
}
|
||||
|
||||
// IMPORTANT: remember to check if player is on the stairs
|
||||
long_result character::move(level *lvl,
|
||||
const position &p) {
|
||||
if (lvl->is_available(p)) {
|
||||
pos = p;
|
||||
return {result::moved, ""};
|
||||
}
|
||||
|
||||
return {result::fine, ""};
|
||||
}
|
||||
|
||||
int calc_dmg(const int ATK, const int DEF) {
|
||||
return ceil((100.0f / (100.0f + DEF)) * ATK);
|
||||
}
|
||||
|
Reference in New Issue
Block a user