Skip to content
Snippets Groups Projects
Commit 8a61976d authored by DarkGod's avatar DarkGod
Browse files

plop

parent 6fecfd91
No related branches found
No related tags found
No related merge requests found
......@@ -1313,7 +1313,9 @@ function resolvers.nice_tile(def)
end
function resolvers.calc.nice_tile(t, e)
if engine.Map.tiles.nicer_tiles then
if t[1].tall then t[1] = {image="invis.png", add_mos = {{image="=BASE=TILE=", display_h=2, display_y=-1}}} end
if t[1].tall and not t[1].wide then t[1] = {image="invis.png", add_mos = {{image="=BASE=TILE=", display_h=2, display_y=-1}}}
elseif t[1].tall and t[1].wide then t[1] = {image="invis.png", add_mos = {{image="=BASE=TILE=", display_h=2, display_y=-1, display_w=2, display_x=-0.5}}}
elseif not t[1].tall and t[1].wide then t[1] = {image="invis.png", add_mos = {{image="=BASE=TILE=", display_w=2, display_x=-0.5}}} end
if t[1].add_mos and t[1].add_mos[1] and t[1].add_mos[1].image == "=BASE=TILE=" then t[1].add_mos[1].image = e.image end
if t[1].add_mos and t[1].add_mos[1] and t[1].add_mos[1].image then t[1].attachement_spots = t[1].add_mos[1].image end
table.merge(e, t[1])
......
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