fix cerr
This commit is contained in:
parent
6669f8b137
commit
824e9ca421
@ -52,9 +52,9 @@ void ScavTrap::attack(const std::string& target)
|
|||||||
{
|
{
|
||||||
if (this->_life == 0 || this->_energy == 0)
|
if (this->_life == 0 || this->_energy == 0)
|
||||||
{
|
{
|
||||||
std::cerr << "error: ScavTrap " << this->_name << " dead" << std::endl;
|
std::cout << "error: ScavTrap " << this->_name << " dead" << std::endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this->_energy--;
|
this->_energy--;
|
||||||
std::cerr << "ScavTrap " << this->_name << " attacks " << target << ", causing " << this->_damage << " points of damage!" << std::endl;
|
std::cout << "ScavTrap " << this->_name << " attacks " << target << ", causing " << this->_damage << " points of damage!" << std::endl;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user