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

Function AdjustMoveParams

src/game_interpreter.cpp:2717–2726  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2715 }
2716
2717 static void AdjustMoveParams(int& pic_id, Game_Pictures::MoveParams& params) {
2718 AdjustId(pic_id);
2719 AdjustParams(params);
2720
2721 if (params.duration > 10000) {
2722 int new_duration = Main_Data::game_variables->Get(params.duration - 10000);
2723 Output::Debug("PicPointer: Move duration {} replaced with {}", params.duration, new_duration);
2724 params.duration = new_duration;
2725 }
2726 }
2727
2728}
2729

Callers 1

CommandMovePictureMethod · 0.85

Calls 3

AdjustIdFunction · 0.85
AdjustParamsFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected