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

disable moddable tiles in non shockbolt mode

git-svn-id: http://svn.net-core.org/repos/t-engine4@3844 51575b47-30f0-44d4-a5cc-537603b46e54
parent 9d2e6320
No related branches found
No related tags found
No related merge requests found
......@@ -1763,7 +1763,7 @@ end
--- Update tile for races that can handle it
function _M:updateModdableTile()
if not self.moddable_tile then return end
if not self.moddable_tile or Map.tiles.no_moddable_tiles then return end
self:removeAllMOs()
local base = "player/"..self.moddable_tile:gsub("#sex#", self.female and "female" or "male").."/"
......
......@@ -399,10 +399,21 @@ function _M:setupDisplayMode(reboot, mode)
Map.object_stack_count = true
Map.tiles.use_images = true
if gfx.tiles == "ascii" then Map.tiles.use_images = false Map.tiles.force_back_color = {r=0, g=0, b=0, a=255} end
if gfx.tiles == "ascii_full" then Map.tiles.use_images = false end
if gfx.tiles == "shockbolt" then Map.tiles.nicer_tiles = true end
if gfx.tiles == "oldrpg" then Map.tiles.nicer_tiles = true end
if gfx.tiles == "ascii" then
Map.tiles.use_images = false
Map.tiles.force_back_color = {r=0, g=0, b=0, a=255}
Map.tiles.no_moddable_tiles = true
elseif gfx.tiles == "ascii_full" then
Map.tiles.use_images = false
Map.tiles.no_moddable_tiles = true
elseif gfx.tiles == "shockbolt" then
Map.tiles.nicer_tiles = true
elseif gfx.tiles == "oldrpg" then
Map.tiles.nicer_tiles = true
Map.tiles.no_moddable_tiles = true
elseif gfx.tiles == "mushroom" then
Map.tiles.no_moddable_tiles = true
end
if self.level then
if self.level.map.finished then
......
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