Revert "When using Flip, the Flip-item is now updated correctly"

This reverts commit 7ae9823614.
This commit is contained in:
Wofsauge committed 2022-01-16 01:20:10 +01:00
1 parent 7ae9823614
commit 0336a8fce9
2 files changed
+4 -20

No files matched your search

+3 -3
View File
@@ -409,14 +409,14 @@ local game = Game()
local function FlipCallback(descObj)
local flipItemID = EID:getEntityData(descObj.Entity, "EID_FlipItemID")
if Input.IsActionPressed(ButtonAction.ACTION_MAP, EID.player.ControllerIndex) then
local descEntry = EID:getDescriptionObj(5, 100, flipItemID[2])
local descEntry = EID:getDescriptionObj(5, 100, flipItemID)
return descEntry
end
local infoText = EID:getDescriptionEntry("FlipItemToggleInfo")
if flipItemID ~= nil or infoText ~= nil then
local itemName = EID:getObjectName(5, 100, flipItemID[2])
local appendText = "#{{Collectible711}} -> {{Collectible"..flipItemID[2].."}} "..itemName
local itemName = EID:getObjectName(5, 100, flipItemID)
local appendText = "#{{Collectible711}} -> {{Collectible"..flipItemID.."}} "..itemName
appendText = appendText .. "#{{Blank}} "..infoText
EID:appendToDescription(descObj, appendText)
end