| 132 | } |
| 133 | |
| 134 | static std::string GetActionFailureMessage(std::string_view source, std::string_view target, std::string_view message) { |
| 135 | if (Feature::HasPlaceholders()) { |
| 136 | return Utils::ReplacePlaceholders( |
| 137 | message, |
| 138 | Utils::MakeArray('S', 'O'), |
| 139 | Utils::MakeSvArray(source, target) |
| 140 | ); |
| 141 | } |
| 142 | else { |
| 143 | return ToString(target) + ToString(message); |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | std::string GetPhysicalFailureMessage(const Game_Battler& source, const Game_Battler& target) { |
| 148 | return GetActionFailureMessage(source.GetName(), target.GetName(), lcf::Data::terms.dodge); |
no test coverage detected