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

Function GetLearningMessage

src/game_message_terms.cpp:70–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70std::string GetLearningMessage(const Game_Actor& actor, const lcf::rpg::Skill& skill) {
71 if (Player::IsRPG2kE()) {
72 return Utils::ReplacePlaceholders(
73 lcf::Data::terms.skill_learned,
74 Utils::MakeArray('S', 'O'),
75 Utils::MakeSvArray(actor.GetName(), skill.name)
76 );
77 }
78 std::stringstream ss;
79 if (Player::IsPatchManiac() && !lcf::Data::terms.maniac_skill_learned_a.empty()) {
80 ss << lcf::Data::terms.maniac_skill_learned_a << " ";
81 }
82 ss << ToString(skill.name) + (Player::IsRPG2k3E() ? " " : "");
83 ss << ToString(lcf::Data::terms.skill_learned);
84 return ss.str();
85}
86
87} // namespace ActorMessage
88

Callers 1

LearnSkillMethod · 0.85

Calls 4

MakeArrayFunction · 0.85
MakeSvArrayFunction · 0.85
GetNameMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected