Skip to content

Commit

Permalink
fix: magic wall and rush rood onlook description
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelbfg committed Jan 23, 2025
1 parent eece7e5 commit 5eb5a01
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions data/scripts/eventcallbacks/player/on_look.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ end
local function handleItemDescription(inspectedThing, lookDistance)
local descriptionText = inspectedThing:getDescription(lookDistance)

if inspectedThing:getId() == ITEM_MAGICWALL or inspectedThing:getId() == ITEM_MAGICWALL_SAFE then
return "You see a magic wall."
elseif inspectedThing:getId() == ITEM_WILDGROWTH or inspectedThing:getId() == ITEM_WILDGROWTH_SAFE then
return "You see rush wood."
end

if isSpecialItem(inspectedThing.itemid) then
local itemCharges = inspectedThing:getCharges()
if itemCharges > 0 then
Expand Down

0 comments on commit 5eb5a01

Please sign in to comment.