#include "combat.hpp" #include "rand.hpp" int Combat::fight(Combat &target) { int attack = Random::uniform(0,1); int my_dmg = 0; if(attack) { my_dmg = Random::uniform(1, damage); target.hp -= my_dmg; } return my_dmg; }