#include "combat.hpp" #include "rand.hpp" namespace components { int Combat::attack(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; } }