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

Function AdjustId

src/game_interpreter.cpp:2639–2653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2637namespace PicPointerPatch {
2638
2639 static void AdjustId(int& pic_id) {
2640 if (pic_id > 10000) {
2641 int new_id;
2642 if (pic_id > 50000) {
2643 new_id = Main_Data::game_variables->Get(pic_id - 50000);
2644 } else {
2645 new_id = Main_Data::game_variables->Get(pic_id - 10000);
2646 }
2647
2648 if (new_id > 0) {
2649 Output::Debug("PicPointer: ID {} replaced with ID {}", pic_id, new_id);
2650 pic_id = new_id;
2651 }
2652 }
2653 }
2654
2655 static void AdjustParams(Game_Pictures::Params& params) {
2656 if (params.magnify_width > 10000) {

Callers 3

AdjustShowParamsFunction · 0.85
AdjustMoveParamsFunction · 0.85
CommandErasePictureMethod · 0.85

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected