Add: Examine available cargoes.
This commit is contained in:
22
main.nut
22
main.nut
@@ -5,16 +5,18 @@ class FMainClass extends GSController
|
|||||||
|
|
||||||
function FMainClass::Start()
|
function FMainClass::Start()
|
||||||
{
|
{
|
||||||
// for (local cid = 0; cid < 32; cid += 1) {
|
for (local cid = 0; cid < 32; cid += 1) {
|
||||||
// if (!GSCargo.IsValidCargo(cid)) continue;
|
if (!GSCargo.IsValidCargo(cid)) continue;
|
||||||
// if (GSCargo.IsFreight(cid)) {
|
local label = cid + " (" + GSCargo.GetCargoLabel(cid) + ")"
|
||||||
// GSLog.Info(cid + " is freight.");
|
if (GSCargo.IsFreight(cid)) {
|
||||||
// } else if (GSCargo.GetTownEffect(cid) != GSCargo.Town_Effect.TE_NONE) {
|
GSLog.Info(label + " is freight.");
|
||||||
// GSLog.Info(cid + " affects town.");
|
} else if (GSCargo.GetTownEffect(cid) != GSCargo.TE_NONE) {
|
||||||
// } else {
|
GSLog.Info(label + " affects town.");
|
||||||
// GSLog.Info(cid + " does nothing.");
|
} else {
|
||||||
// }
|
GSLog.Info(label + " does nothing.");
|
||||||
// }
|
}
|
||||||
|
}
|
||||||
|
|
||||||
while (true) {
|
while (true) {
|
||||||
if (GSBase.Chance(1, 5)) {
|
if (GSBase.Chance(1, 5)) {
|
||||||
GSLog.Info("We're at at the bottom of the lake.");
|
GSLog.Info("We're at at the bottom of the lake.");
|
||||||
|
|||||||
Reference in New Issue
Block a user