Fix Crane Game description, add REPENTOGON support (#814)
* Fix Crane Game description, add repentogon support * Update main.lua * Update main.lua
This commit is contained in:
1 parent
74d46e9704
commit
27774c9c5e
2 files changed
+20
-7
No files matched your search
@@ -1050,7 +1050,12 @@ function EID:hasDescription(entity)
|
||||
(EID.isRepentance and EID:getEntityData(entity, "EID_FlipItemID") and EID:PlayersHaveCollectible(CollectibleType.COLLECTIBLE_FLIP)))
|
||||
end
|
||||
if entity.Type == 6 and entity.Variant == 16 and EID.Config["DisplayCraneInfo"] and EID.isRepentance then
|
||||
isAllowed = not entity:GetSprite():IsPlaying("Broken") and not entity:GetSprite():IsPlaying("Prize") and not entity:GetSprite():IsPlaying("OutOfPrizes") and (EID.CraneItemType[entity.InitSeed.."Drop"..entity.DropSeed] or EID.CraneItemType[tostring(entity.InitSeed)])
|
||||
if REPENTOGON then
|
||||
isAllowed = not entity:GetSprite():IsPlaying("Broken") and not entity:GetSprite():IsPlaying("OutOfPrizes") and entity:ToSlot():GetPrizeCollectible() ~= -1
|
||||
else
|
||||
isAllowed = not entity:GetSprite():IsPlaying("Broken") and not entity:GetSprite():IsPlaying("OutOfPrizes") and (EID.CraneItemType[entity.InitSeed.."Drop"..entity.DropSeed] or EID.CraneItemType[tostring(entity.InitSeed)])
|
||||
end
|
||||
|
||||
end
|
||||
if entity.Type == 1000 then
|
||||
if entity.Variant == 161 then
|
||||
|
||||
Reference in new issue
Block a user