fix REPENTANCE = false issues
This commit is contained in:
1 parent
31998d68b8
commit
4a8cdc8c60
1 file changed
+9
-4
@@ -949,7 +949,8 @@ function EID:setPlayer()
|
|||||||
else
|
else
|
||||||
EID.player = p
|
EID.player = p
|
||||||
end
|
end
|
||||||
EID.players = { EID.player, REPENTANCE and EID.player:GetOtherTwin() }
|
EID.players = { EID.player }
|
||||||
|
if REPENTANCE then EID.players = { EID.player, REPENTANCE and EID.player:GetOtherTwin() } end
|
||||||
EID.coopMainPlayers = { EID.player }
|
EID.coopMainPlayers = { EID.player }
|
||||||
EID.coopAllPlayers = EID.players
|
EID.coopAllPlayers = EID.players
|
||||||
EID.controllerIndexes[p.ControllerIndex] = 1
|
EID.controllerIndexes[p.ControllerIndex] = 1
|
||||||
@@ -1000,9 +1001,13 @@ function EID:onGameUpdate()
|
|||||||
EID:evaluateQueuedItems()
|
EID:evaluateQueuedItems()
|
||||||
EID:evaluateHeldPill()
|
EID:evaluateHeldPill()
|
||||||
|
|
||||||
-- Fix some outdated mods erroneously setting the REPENTANCE constant to false
|
-- Fix some poorly coded mods erroneously setting the REPENTANCE constant to false (the only valid values for it are nil or true)
|
||||||
if EID.GameVersion == "rep" and REPENTANCE == false then
|
if REPENTANCE == false then
|
||||||
REPENTANCE = true
|
if EID.GameVersion == "rep" then
|
||||||
|
REPENTANCE = true
|
||||||
|
else
|
||||||
|
REPENTANCE = nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if collSpawned then
|
if collSpawned then
|
||||||
|
|||||||
Reference in new issue
Block a user