Change: CreateChallenge() now creates goals as well as logging them
This commit is contained in:
6
main.nut
6
main.nut
@@ -165,8 +165,10 @@ function FMainClass::CreateChallenge(cid)
|
|||||||
}
|
}
|
||||||
if (cdata != null) {
|
if (cdata != null) {
|
||||||
cdata.AddActiveGoal(cargo, accept, amount);
|
cdata.AddActiveGoal(cargo, accept, amount);
|
||||||
GSLog.Info("Company " + cid + " should deliver " + amount +
|
local goal_text = "Company " + cid + " should deliver " + amount +
|
||||||
" of " + GSCargo.GetCargoLabel(this.cargoes[cargo].cid));
|
" of " + GSCargo.GetCargoLabel(this.cargoes[cargo].cid);
|
||||||
|
GSLog.Info(goal_text);
|
||||||
|
GSGoal.New(cid, goal_text, GSGoal.GT_NONE, 0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user