Fixed formatting
This commit is contained in:
1 parent
1a22c0083d
commit
39ef7c97f2
31 files changed
+7346
-7350
No files matched your search
+18
-18
@@ -760,17 +760,17 @@ function EID:getSpindownResult(collectibleID)
|
||||
end
|
||||
|
||||
function EID:GetMaxCollectibleID()
|
||||
local id = CollectibleType.NUM_COLLECTIBLES-1
|
||||
local step = 16
|
||||
while step > 0 do
|
||||
if EID.itemConfig:GetCollectible(id+step) ~= nil then
|
||||
id = id + step
|
||||
else
|
||||
step = step // 2
|
||||
end
|
||||
end
|
||||
|
||||
return id
|
||||
local id = CollectibleType.NUM_COLLECTIBLES-1
|
||||
local step = 16
|
||||
while step > 0 do
|
||||
if EID.itemConfig:GetCollectible(id+step) ~= nil then
|
||||
id = id + step
|
||||
else
|
||||
step = step // 2
|
||||
end
|
||||
end
|
||||
|
||||
return id
|
||||
end
|
||||
|
||||
local maxCollectibleID = nil
|
||||
@@ -882,13 +882,13 @@ function EID:handleHUDElement(hudElement)
|
||||
end
|
||||
|
||||
function EID:getScreenSize()
|
||||
local room = game:GetRoom()
|
||||
local pos = room:WorldToScreenPosition(Vector(0,0)) - room:GetRenderScrollOffset() - Game().ScreenShakeOffset
|
||||
|
||||
local rx = pos.X + 60 * 26 / 40
|
||||
local ry = pos.Y + 140 * (26 / 40)
|
||||
|
||||
return Vector(rx*2 + 13*26, ry*2 + 7*26)
|
||||
local room = game:GetRoom()
|
||||
local pos = room:WorldToScreenPosition(Vector(0,0)) - room:GetRenderScrollOffset() - Game().ScreenShakeOffset
|
||||
|
||||
local rx = pos.X + 60 * 26 / 40
|
||||
local ry = pos.Y + 140 * (26 / 40)
|
||||
|
||||
return Vector(rx*2 + 13*26, ry*2 + 7*26)
|
||||
end
|
||||
|
||||
function EID:getEntityData(entity, str)
|
||||
|
||||
Reference in new issue
Block a user