[x] I am aware that this PR may be closed if the above-mentioned criteria are not fulfilled.
Changes Proposed
Add monster icon when creature appears on the screen
Issues addressed:
Creatures with icons when appears on screen have no icons
How test:
1) create monster
2) add icons to monster
3) move 20 tile away from monster
4) go back
5) icons are still visible
local test = Action()
function test.onUse(player, item, fromPosition, target, toPosition, isHotkey)
local m = Game.createMonster("Rat", player:getPosition())
m:setSpecialIcon(5,1)
m:setIcon(CREATURE_ICON_PIGEON,1)
m:setIcon(CREATURE_ICON_QUESTION,1)
return true
end
test:id(45595)
test:register()
Pull Request Prelude
Changes Proposed
Add monster icon when creature appears on the screen
Issues addressed:
Creatures with icons when appears on screen have no icons
How test:
1) create monster 2) add icons to monster 3) move 20 tile away from monster 4) go back 5) icons are still visible