Skip to content

Commit 6961f54

Browse files
authored
Update DecisionDay.lua
1 parent 8ff9cd3 commit 6961f54

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Data/Missions.rte/Activities/DecisionDay.lua

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ function DecisionDay:SetTableValueByKey(tableToSetValueFor, keyToLoad)
645645
local existingValueType = type(existingValue);
646646

647647
if existingValueType == "nil" then
648-
print("Loading Error: Tried to load " .. tableKey .." but there's no existing value for it!");
648+
("Loading Error: Tried to load " .. tableKey .." but there's no existing value for it!");
649649
end
650650

651651
if existingValueType == "number" then
@@ -655,13 +655,13 @@ function DecisionDay:SetTableValueByKey(tableToSetValueFor, keyToLoad)
655655
elseif existingValueType == "boolean" then
656656
tableToSetValueFor[tableKey] = self:LoadNumber(keyToLoad) ~= 0;
657657
elseif existingValueType == "table" then
658-
print("Loading Error: Tables are not supported, use . for subkeys!")
658+
("Loading Error: Tables are not supported, use . for subkeys!")
659659
elseif existingValueType == "userdata" then
660660
if existingValue.ElapsedSimTimeMS ~= nil then
661661
tableToSetValueFor[tableKey]:SetSimTimeLimitMS(self:LoadNumber(keyToLoad .. ".SimTimeLimitMS"));
662662
tableToSetValueFor[tableKey].ElapsedSimTimeMS = self:LoadNumber(keyToLoad .. ".ElapsedSimTimeMS");
663663
else
664-
print("Loading Error: The only supported userdata type is Timer!");
664+
("Loading Error: The only supported userdata type is Timer!");
665665
end
666666
end
667667
end
@@ -1246,7 +1246,6 @@ function DecisionDay:SpawnAndUpdateInitialDropShips()
12461246
if initialDropShipAndVelocity.dropShip.TravelImpulse.Magnitude > 10 or initialDropShipAndVelocity.dropShip.Age > 100000 then
12471247
initialDropShipAndVelocity.dropShip:GibThis();
12481248
end
1249-
print(initialDropShipAndVelocity.dropShip.Age)
12501249
end
12511250
end
12521251
end
@@ -2524,4 +2523,4 @@ function DecisionDay:CreateCrab(team, createTurret)
25242523
actor.Team = team;
25252524
actor.PlayerControllable = createTurret or self.humansAreControllingAlliedActors;
25262525
return actor;
2527-
end
2526+
end

0 commit comments

Comments
 (0)