engine/actions/source/ConsumableAction.cpp
// If the creature is the player, add a message based on the resistance.
If the creature is the player, add a message based on the resistance.
If the creature is the player add a message based on the resistance .
bool ConsumableAction::add_consumable_message_if_necessary(CreaturePtr creature, ResistancePtr res, const double delta)
{
  bool added_msg = false;
  if (creature && creature->get_is_player() && delta > 0)
  {
    string res_msg = StringTable::get(res->get_gain_message_sid());
    IMessageManager& manager = MM::instance();
    manager.add_new_message(res_msg);
    added_msg = true;
  }
  return added_msg;
}
bool ConsumableAction :: add_consumable_message_if_necessary ( CreaturePtr creature , ResistancePtr res , const double delta ) { bool added_msg = false ; if ( creature && creature -> get_is_player ( ) && delta > 0 ) { string res_msg = StringTable :: get ( res -> get_gain_message_sid ( ) ) ; IMessageManager & manager = MM :: instance ( ) ; manager . add_new_message ( res_msg ) ; added_msg = true ; } return added_msg ; }
If the creature is the player, add a message based on the resistance.
If the creature is the player add a message based on the resistance .
// Add a message about the change.