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

Method TransitionOut

src/scene_item.cpp:114–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void Scene_Item::TransitionOut(Scene::SceneType next_scene) {
115 const auto* item = item_window->GetItem();
116 const lcf::rpg::Skill* skill = nullptr;
117 if (item && item->type == lcf::rpg::Item::Type_special && item->skill_id > 0) {
118 skill = lcf::ReaderUtil::GetElement(lcf::Data::skills, item->skill_id);
119 }
120
121 if (next_scene == Map && skill && skill->type == lcf::rpg::Skill::Type_escape) {
122 Transition::instance().InitErase(Transition::TransitionFadeOut, this);
123 } else {
124 Scene::TransitionOut(next_scene);
125 }
126}

Callers

nothing calls this directly

Calls 2

InitEraseMethod · 0.80
GetItemMethod · 0.45

Tested by

no test coverage detected