#include "Player.h" #include "RNG.h" #include "ExpConsumableObject.h" void ExpConsumableObject::consume(Player & player) { float min = static_cast(this->get_potency().min) / 100; float max = static_cast(this->get_potency().max) / 100; player.add_attack(RNG::get().rand_double(min, max)); }