Skip to content

Commit

Permalink
Added 2 more args to AddPatternA5
Browse files Browse the repository at this point in the history
  • Loading branch information
Natashi committed Feb 6, 2022
1 parent 51fb767 commit 6c86b51
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion source/TouhouDanmakufu/Common/StgStageScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ static const std::vector<function> stgStageFunction = {
{ "ObjMove_AddPatternA2", StgStageScript::Func_ObjMove_AddPatternA2, 7 },
{ "ObjMove_AddPatternA3", StgStageScript::Func_ObjMove_AddPatternA3, 8 },
{ "ObjMove_AddPatternA4", StgStageScript::Func_ObjMove_AddPatternA4, 9 },
{ "ObjMove_AddPatternA5", StgStageScript::Func_ObjMove_AddPatternA5, 9 },
{ "ObjMove_AddPatternA5", StgStageScript::Func_ObjMove_AddPatternA5, 11 },
{ "ObjMove_AddPatternB1", StgStageScript::Func_ObjMove_AddPatternB1, 4 },
{ "ObjMove_AddPatternB2", StgStageScript::Func_ObjMove_AddPatternB2, 8 },
{ "ObjMove_AddPatternB3", StgStageScript::Func_ObjMove_AddPatternB3, 9 },
Expand Down Expand Up @@ -3195,6 +3195,8 @@ gstd::value StgStageScript::Func_ObjMove_AddPatternA5(gstd::script_machine* mach
double agvel = argv[6].as_float();
double agacc = argv[7].as_float();
double agmax = argv[8].as_float();
int idGraphic = argv[9].as_int();
int idRelative = argv[10].as_int();

ref_unsync_ptr<StgMovePattern_Angle> pattern = new StgMovePattern_Angle(obj);

Expand All @@ -3206,6 +3208,9 @@ gstd::value StgStageScript::Func_ObjMove_AddPatternA5(gstd::script_machine* mach
ADD_CMD2(StgMovePattern_Angle::SET_AGACC, agacc, Math::DegreeToRadian(agacc));
ADD_CMD2(StgMovePattern_Angle::SET_AGMAX, agmax, Math::DegreeToRadian(agmax));

pattern->SetShotDataID(idGraphic);
pattern->SetRelativeObject(idRelative);

obj->AddPattern(frame, pattern);
}
return value();
Expand Down

0 comments on commit 6c86b51

Please sign in to comment.