Skip to content
Snippets Groups Projects
Commit a634a24d authored by dg's avatar dg
Browse files

Alchemist golem now use moddable tiles

git-svn-id: http://svn.net-core.org/repos/t-engine4@3716 51575b47-30f0-44d4-a5cc-537603b46e54
parent eb6d62a0
No related branches found
No related tags found
No related merge requests found
......@@ -1757,9 +1757,9 @@ function _M:updateModdableTile()
add[#add+1] = {image = base..(self.moddable_tile_base or "base_01.png")}
i = self.inven[self.INVEN_CLOAK]; if i and i[1] and i[1].moddable_tile then add[#add+1] = {image = base..(i[1].moddable_tile):format("shoulder")..".png", display_y=i[1].moddable_tile_big and -1 or 0, display_h=i[1].moddable_tile_big and 2 or 1} end
i = self.inven[self.INVEN_BODY]; if i and i[1] and i[1].moddable_tile2 then add[#add+1] = {image = base..(i[1].moddable_tile2)..".png"}
else add[#add+1] = {image = base.."lower_body_01.png"} end
elseif not self.moddable_tile_nude then add[#add+1] = {image = base.."lower_body_01.png"} end
i = self.inven[self.INVEN_BODY]; if i and i[1] and i[1].moddable_tile then add[#add+1] = {image = base..(i[1].moddable_tile)..".png", display_y=i[1].moddable_tile_big and -1 or 0, display_h=i[1].moddable_tile_big and 2 or 1}
else add[#add+1] = {image = base.."upper_body_01.png"} end
elseif not self.moddable_tile_nude then add[#add+1] = {image = base.."upper_body_01.png"} end
i = self.inven[self.INVEN_MAINHAND]; if i and i[1] and i[1].moddable_tile then
add[#add+1] = {image = base..(i[1].moddable_tile):format("right")..".png", display_y=i[1].moddable_tile_big and -1 or 0, display_h=i[1].moddable_tile_big and 2 or 1}
if i[1].moddable_tile_particle then
......
......@@ -108,6 +108,7 @@ newBirthDescriptor
construct = 1,
moddable_tile = "runic_golem",
moddable_tile_nude = true,
},
experience = 1.5,
}
......@@ -30,6 +30,8 @@ local function makeGolem()
return require("mod.class.NPC").new{
type = "construct", subtype = "golem",
display = 'g', color=colors.WHITE, image = "npc/alchemist_golem.png",
moddable_tile = "runic_golem",
moddable_tile_nude = true,
level_range = {1, 50}, exp_worth=0,
life_rating = 13,
never_anger = true,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment