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

Function AdjustShowParams

src/game_interpreter.cpp:2702–2715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2700 }
2701
2702 static void AdjustShowParams(int& pic_id, Game_Pictures::ShowParams& params) {
2703 // Adjust name
2704 if (pic_id >= 50000) {
2705 // Name substitution is pic_id + 1
2706 int pic_num = Main_Data::game_variables->Get(pic_id - 50000 + 1);
2707
2708 if (pic_num >= 0) {
2709 params.name = ReplaceName(params.name, pic_num, 4);
2710 }
2711 }
2712
2713 AdjustId(pic_id);
2714 AdjustParams(params);
2715 }
2716
2717 static void AdjustMoveParams(int& pic_id, Game_Pictures::MoveParams& params) {
2718 AdjustId(pic_id);

Callers 1

CommandShowPictureMethod · 0.85

Calls 4

ReplaceNameFunction · 0.85
AdjustIdFunction · 0.85
AdjustParamsFunction · 0.85
GetMethod · 0.45

Tested by

no test coverage detected