moved files out of subdirectories, added required documentation

This commit is contained in:
2024-07-25 13:08:39 -04:00
parent 546909b4aa
commit b04884e44a
96 changed files with 141 additions and 171 deletions

17
src/troll.cc Normal file
View File

@ -0,0 +1,17 @@
#include "troll.h"
#include "constants.h"
troll::troll(RNG *rng, const feature enabled_features):
player_base{rng, enabled_features, TROLL} {}
const char *troll::get_race_name() const {
return "Troll";
}
void troll::start_turn() {
ATK = STARTING_ATK[TROLL];
DEF = STARTING_DEF[TROLL];
base_hit_rate = {1, 1};
HP = HP + GAIN_HP < MAX_HP[TROLL] ? HP + GAIN_HP : MAX_HP[TROLL];
}