MCPcopy Create free account
hub / github.com/Phobos-developers/Phobos / TeamWeightReward

Method TeamWeightReward

src/Ext/Script/Body.cpp:602–616  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

600}
601
602void ScriptExt::TeamWeightReward(TeamClass* pTeam, double award)
603{
604 if (award <= 0)
605 award = pTeam->CurrentScript->Type->ScriptActions[pTeam->CurrentScript->CurrentMission].Argument;
606
607 auto const pTeamData = TeamExt::ExtMap.Find(pTeam);
608
609 if (award > 0)
610 pTeamData->NextSuccessWeightAward = award;
611
612 // This action finished
613 pTeam->StepCompleted = true;
614
615 return;
616}
617
618void ScriptExt::PickRandomScript(TeamClass* pTeam, int idxScriptsList)
619{

Callers

nothing calls this directly

Calls 1

FindMethod · 0.45

Tested by

no test coverage detected