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

Function GetStateMessage

src/game_message_terms.cpp:91–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89namespace BattleMessage {
90
91static std::string GetStateMessage(std::string_view target_name, std::string_view message) {
92 if (Feature::HasPlaceholders()) {
93 return Utils::ReplacePlaceholders(
94 message,
95 Utils::MakeArray('S'),
96 Utils::MakeSvArray(target_name)
97 );
98 }
99 else {
100 return ToString(target_name) + ToString(message);
101 }
102}
103
104std::string GetStateInflictMessage(const Game_Battler& target, const lcf::rpg::State& state) {
105 if (target.GetType() == Game_Battler::Type_Ally) {

Callers 4

GetStateInflictMessageFunction · 0.85
GetStateRecoveryMessageFunction · 0.85
GetStateAffectedMessageFunction · 0.85
GetStateAlreadyMessageFunction · 0.85

Calls 2

MakeArrayFunction · 0.85
MakeSvArrayFunction · 0.85

Tested by

no test coverage detected