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

Method SkillSelected

src/scene_battle.cpp:467–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467void Scene_Battle::SkillSelected() {
468 const lcf::rpg::Skill* skill = skill_window->GetSkill();
469
470 if (!skill || !skill_window->CheckEnable(skill->ID)) {
471 Main_Data::game_system->SePlay(Main_Data::game_system->GetSystemSE(Main_Data::game_system->SFX_Buzzer));
472 return;
473 }
474
475 Main_Data::game_system->SePlay(Main_Data::game_system->GetSystemSE(Main_Data::game_system->SFX_Decision));
476
477 AssignSkill(skill, nullptr);
478}
479
480void Scene_Battle::AssignSkill(const lcf::rpg::Skill* skill, const lcf::rpg::Item* item) {
481 switch (skill->type) {

Callers

nothing calls this directly

Calls 3

GetSkillMethod · 0.80
SePlayMethod · 0.80
CheckEnableMethod · 0.45

Tested by

no test coverage detected