MCPcopy Create free account
hub / github.com/EasyRPG/Player / GetStateInflictMessage

Function GetStateInflictMessage

src/game_message_terms.cpp:104–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104std::string GetStateInflictMessage(const Game_Battler& target, const lcf::rpg::State& state) {
105 if (target.GetType() == Game_Battler::Type_Ally) {
106 return GetStateMessage(target.GetName(), state.message_actor);
107 }
108 if (target.GetType() == Game_Battler::Type_Enemy) {
109 return GetStateMessage(target.GetName(), state.message_enemy);
110 }
111 return "";
112}
113
114std::string GetStateRecoveryMessage(const Game_Battler& target, const lcf::rpg::State& state) {
115 return GetStateMessage(target.GetName(), state.message_recovery);

Callers 2

GetDeathMessageFunction · 0.85

Calls 3

GetStateMessageFunction · 0.85
GetTypeMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected