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

Added a Map.attrs(x, y, k, v) method to store various attributes on the map at...

Added a Map.attrs(x, y, k, v) method to store various attributes on the map at x, y in a key 'k'. If 'v' is given it sets it otherwise it gets it. Actor:randomTeleport() wont teleport to places with the no_teleport flag set


git-svn-id: http://svn.net-core.org/repos/t-engine4@1005 51575b47-30f0-44d4-a5cc-537603b46e54
parent 4c520826
No related branches found
No related tags found
No related merge requests found
...@@ -189,7 +189,8 @@ function _M:teleportRandom(x, y, dist, min_dist) ...@@ -189,7 +189,8 @@ function _M:teleportRandom(x, y, dist, min_dist)
if game.level.map:isBound(i, j) and if game.level.map:isBound(i, j) and
core.fov.distance(x, y, i, j) <= dist and core.fov.distance(x, y, i, j) <= dist and
core.fov.distance(x, y, i, j) >= min_dist and core.fov.distance(x, y, i, j) >= min_dist and
self:canMove(i, j) then self:canMove(i, j) and
not game.level.map.attrs(i, j, "no_teleport") then
poss[#poss+1] = {i,j} poss[#poss+1] = {i,j}
end end
end end
......
...@@ -90,6 +90,7 @@ end ...@@ -90,6 +90,7 @@ end
-- @param reaction a numerical value representing the reaction, 0 is neutral, <0 is aggressive, >0 is friendly. -- @param reaction a numerical value representing the reaction, 0 is neutral, <0 is aggressive, >0 is friendly.
-- @param mutual if true the same status will be set for f2 toward f1. -- @param mutual if true the same status will be set for f2 toward f1.
function _M:setFactionReaction(f1, f2, reaction, mutual) function _M:setFactionReaction(f1, f2, reaction, mutual)
reaction = util.bound(reaction, -100, 100)
print("[FACTION]", f1, f2, reaction, mutual) print("[FACTION]", f1, f2, reaction, mutual)
-- Faction always like itself -- Faction always like itself
if f1 == f2 then return end if f1 == f2 then return end
......
...@@ -193,6 +193,7 @@ function _M:init(w, h) ...@@ -193,6 +193,7 @@ function _M:init(w, h)
self.my = 0 self.my = 0
self.w, self.h = w, h self.w, self.h = w, h
self.map = {} self.map = {}
self.attrs = {}
self.lites = {} self.lites = {}
self.seens = {} self.seens = {}
self.has_seens = {} self.has_seens = {}
...@@ -292,12 +293,21 @@ function _M:loaded() ...@@ -292,12 +293,21 @@ function _M:loaded()
end end
return t[x + y * self.w] return t[x + y * self.w]
end end
local mapattrs = function(t, x, y, k, v)
if x < 0 or y < 0 or x >= self.w or y >= self.h then return end
if v ~= nil then
if not t[x + y * self.w] then t[x + y * self.w] = {} end
t[x + y * self.w][k] = v
end
return t[x + y * self.w] and t[x + y * self.w][k]
end
getmetatable(self).__call = _M.call getmetatable(self).__call = _M.call
setmetatable(self.lites, {__call = maplite}) setmetatable(self.lites, {__call = maplite})
setmetatable(self.seens, {__call = mapseen}) setmetatable(self.seens, {__call = mapseen})
setmetatable(self.has_seens, {__call = maphasseen}) setmetatable(self.has_seens, {__call = maphasseen})
setmetatable(self.remembers, {__call = mapremember}) setmetatable(self.remembers, {__call = mapremember})
setmetatable(self.attrs, {__call = mapattrs})
self.surface = core.display.newSurface(self.viewport.width, self.viewport.height) self.surface = core.display.newSurface(self.viewport.width, self.viewport.height)
self.changed = true self.changed = true
......
...@@ -52,10 +52,10 @@ function _M:loadMap(file) ...@@ -52,10 +52,10 @@ function _M:loadMap(file)
defineTile = function(char, grid, obj, actor, trap, status) defineTile = function(char, grid, obj, actor, trap, status)
t[char] = {grid=grid, object=obj, actor=actor, trap=trap, status=status} t[char] = {grid=grid, object=obj, actor=actor, trap=trap, status=status}
end, end,
quickEntity = function(char, e) quickEntity = function(char, e, status)
if type(e) == "table" then if type(e) == "table" then
local e = self.zone.grid_class.new(e) local e = self.zone.grid_class.new(e)
t[char] = {grid=e} t[char] = {grid=e, status=status}
else else
t[char] = t[e] t[char] = t[e]
end end
...@@ -174,8 +174,9 @@ function _M:generate(lev, old_lev) ...@@ -174,8 +174,9 @@ function _M:generate(lev, old_lev)
end end
if status then if status then
if status.lite then self.level.map.lites(i-1, j-1, true) end if status.lite then self.level.map.lites(i-1, j-1, true) status.lite = nil end
if status.remember then self.level.map.remembers(i-1, j-1, true) end if status.remember then self.level.map.remembers(i-1, j-1, true) status.remember = nil end
if pairs(status) then for k, v in pairs(status) do self.level.map.attrs(i-1, j-1, k, v) end end
end end
end end end end
......
...@@ -79,6 +79,7 @@ function _M:newTalent(t) ...@@ -79,6 +79,7 @@ function _M:newTalent(t)
table.insert(self.talents_def, t) table.insert(self.talents_def, t)
t.id = #self.talents_def t.id = #self.talents_def
assert(not self["T_"..t.short_name], "talent already exists with id T_"..t.short_name)
self["T_"..t.short_name] = #self.talents_def self["T_"..t.short_name] = #self.talents_def
print("[TALENT]", t.name, t.short_name, #self.talents_def) print("[TALENT]", t.name, t.short_name, #self.talents_def)
......
...@@ -393,9 +393,9 @@ end ...@@ -393,9 +393,9 @@ end
function _M:tooltip(x, y, seen_by) function _M:tooltip(x, y, seen_by)
if seen_by and not seen_by:canSee(self) then return end if seen_by and not seen_by:canSee(self) then return end
local factcolor, factstate = "#ANTIQUE_WHITE#", "neutral" local factcolor, factstate, factlevel = "#ANTIQUE_WHITE#", "neutral", self:reactionToward(game.player)
if self:reactionToward(game.player) < 0 then factcolor, factstate = "#LIGHT_RED#", "hostile" if factlevel < 0 then factcolor, factstate = "#LIGHT_RED#", "hostile"
elseif self:reactionToward(game.player) > 0 then factcolor, factstate = "#LIGHT_GREEN#", "friendly" elseif factlevel > 0 then factcolor, factstate = "#LIGHT_GREEN#", "friendly"
end end
local rank, rank_color = self:TextRank() local rank, rank_color = self:TextRank()
...@@ -427,7 +427,7 @@ Stats: %d / %d / %d / %d / %d / %d ...@@ -427,7 +427,7 @@ Stats: %d / %d / %d / %d / %d / %d
Resists: %s Resists: %s
Size: #ANTIQUE_WHITE#%s Size: #ANTIQUE_WHITE#%s
%s %s
Faction: %s%s (%s) Faction: %s%s (%s, %d)
%s]]):format( %s]]):format(
self:getDisplayString(), rank_color, self.name, self:getDisplayString(), rank_color, self.name,
rank_color, rank, rank_color, rank,
...@@ -444,7 +444,7 @@ Faction: %s%s (%s) ...@@ -444,7 +444,7 @@ Faction: %s%s (%s)
table.concat(resists, ','), table.concat(resists, ','),
self:TextSizeCategory(), self:TextSizeCategory(),
self.desc or "", self.desc or "",
factcolor, Faction.factions[self.faction].name, factstate, factcolor, Faction.factions[self.faction].name, factstate, factlevel,
table.concat(effs, "\n") table.concat(effs, "\n")
) )
end end
......
...@@ -474,7 +474,8 @@ function _M:setupCommands() ...@@ -474,7 +474,8 @@ function _M:setupCommands()
self.player.esp.all = 1 self.player.esp.all = 1
self.player.esp.range = 50 self.player.esp.range = 50
self.player.inc_damage.all = 100000 self.player.inc_damage.all = 100000
self:changeLevel(15, "high-peak") -- self:changeLevel(15, "high-peak")
self:changeLevel(1, "town-gates-of-morning")
-- self:changeLevel(1, "wilderness-arda-fareast") -- self:changeLevel(1, "wilderness-arda-fareast")
-- game.memory_levels["wilderness-arda-fareast-1"] = game.level -- game.memory_levels["wilderness-arda-fareast-1"] = game.level
-- self.player:grantQuest("orc-pride") -- self.player:grantQuest("orc-pride")
......
...@@ -60,14 +60,18 @@ function _M:onTakeHit(value, src) ...@@ -60,14 +60,18 @@ function _M:onTakeHit(value, src)
end end
if Faction:get(self.faction) and Faction:get(self.faction).hostile_on_attack then if Faction:get(self.faction) and Faction:get(self.faction).hostile_on_attack then
Faction:setFactionReaction(self.faction, src.faction, -100, true) Faction:setFactionReaction(self.faction, src.faction, Faction:factionReaction(self.faction, src.faction) - self.rank * 5, true)
end end
return mod.class.Actor.onTakeHit(self, value, src) return mod.class.Actor.onTakeHit(self, value, src)
end end
function _M:die(src) function _M:die(src)
-- Sefl resurrect, mouhaha! if Faction:get(self.faction) and Faction:get(self.faction).hostile_on_attack then
Faction:setFactionReaction(self.faction, src.faction, Faction:factionReaction(self.faction, src.faction) - self.rank * 15, true)
end
-- Self resurrect, mouhaha!
if self:attr("self_resurrect") then if self:attr("self_resurrect") then
self:attr("self_resurrect", -1) self:attr("self_resurrect", -1)
game.logSeen(src, "#LIGHT_RED#%s raises from the dead!", self.name:capitalize()) -- src, not self as the source, to make sure the player knows his doom ;> game.logSeen(src, "#LIGHT_RED#%s raises from the dead!", self.name:capitalize()) -- src, not self as the source, to make sure the player knows his doom ;>
......
...@@ -17,38 +17,39 @@ ...@@ -17,38 +17,39 @@
-- Nicolas Casalini "DarkGod" -- Nicolas Casalini "DarkGod"
-- darkgod@te4.org -- darkgod@te4.org
defineTile(' ', "FLOOR") defineTile(' ', "FLOOR", nil, nil, nil, {no_teleport=true})
quickEntity('M', {always_remember = true, show_tooltip=true, name='Sun Wall', display='^', color=colors.GOLD, back_color=colors.CRIMSON, image="terrain/mountain.png", tint=colors.GOLD, block_move=true}) quickEntity('M', {always_remember = true, show_tooltip=true, name='Sun Wall', display='^', color=colors.GOLD, back_color=colors.CRIMSON, image="terrain/mountain.png", tint=colors.GOLD, block_move=true}, {no_teleport=true})
quickEntity('<', {show_tooltip=true, name='into the wild', display='<', color=colors.WHITE, change_level=1, change_zone="wilderness-arda-fareast"}) quickEntity('<', {show_tooltip=true, name='into the wild', display='<', color=colors.WHITE, change_level=1, change_zone="wilderness-arda-fareast"}, {no_teleport=true})
quickEntity('S', {name='brick roof top', display='#', color=colors.RED, block_move=true, block_sight=true, image="terrain/wood_wall1.png"}) quickEntity('S', {name='brick roof top', display='#', color=colors.RED, block_move=true, block_sight=true, image="terrain/wood_wall1.png"}, {no_teleport=true})
quickEntity('s', {name='brick roof', display='#', color=colors.RED, block_move=true, block_sight=true, image="terrain/wood_wall1.png"}) quickEntity('s', {name='brick roof', display='#', color=colors.RED, block_move=true, block_sight=true, image="terrain/wood_wall1.png"}, {no_teleport=true})
quickEntity('t', {name='brick roof chimney', display='#', color=colors.LIGHT_RED, block_move=true, block_sight=true, image="terrain/wood_wall1.png"}) quickEntity('t', {name='brick roof chimney', display='#', color=colors.LIGHT_RED, block_move=true, block_sight=true, image="terrain/wood_wall1.png"}, {no_teleport=true})
quickEntity('#', {name='wall', display='#', color=colors.WHITE, block_move=true, block_sight=true, image="terrain/wood_wall1.png"}) quickEntity('#', {name='wall', display='#', color=colors.WHITE, block_move=true, block_sight=true, image="terrain/wood_wall1.png"}, {no_teleport=true})
quickEntity('T', {name='tree', display='#', color=colors.LIGHT_GREEN, block_move=true, block_sight=true, image="terrain/grass.png", add_displays = {mod.class.Grid.new{image="terrain/tree_alpha2.png"}}}) quickEntity('T', {name='tree', display='#', color=colors.LIGHT_GREEN, block_move=true, block_sight=true, image="terrain/grass.png", add_displays = {mod.class.Grid.new{image="terrain/tree_alpha2.png"}}}, {no_teleport=true})
quickEntity('P', {name='palm tree', display='#', color=colors.LIGHT_GREEN, back_color={r=163,g=149,b=42}, image="terrain/palmtree.png", block_move=true}) quickEntity('P', {name='palm tree', display='#', color=colors.LIGHT_GREEN, back_color={r=163,g=149,b=42}, image="terrain/palmtree.png", block_move=true}, {no_teleport=true})
quickEntity('~', {name='river', display='~', color=colors.BLUE, block_move=true, image="terrain/river.png", add_displays = mod.class.Grid:makeWater(true)}) quickEntity('~', {name='river', display='~', color=colors.BLUE, block_move=true, image="terrain/river.png", add_displays = mod.class.Grid:makeWater(true)}, {no_teleport=true})
quickEntity('O', {name='cobblestone road', display='.', color=colors.WHITE, image="terrain/stone_road1.png"}) quickEntity('O', {name='cobblestone road', display='.', color=colors.WHITE, image="terrain/stone_road1.png"}, {no_teleport=true})
quickEntity(':', {name='sand', display='.', color={r=203,g=189,b=72}, back_color={r=163,g=149,b=42}, image="terrain/sand.png", can_encounter="desert", equilibrium_level=-10}) quickEntity(':', {name='sand', display='.', color={r=203,g=189,b=72}, back_color={r=163,g=149,b=42}, image="terrain/sand.png", can_encounter="desert", equilibrium_level=-10}, {no_teleport=true})
quickEntity('"', {name='grass', display='.', color=colors.LIGHT_GREEN, image="terrain/grass.png"}, {no_teleport=true})
quickEntity('-', {name='grass', display='.', color=colors.LIGHT_GREEN, image="terrain/grass.png"}) quickEntity('-', {name='grass', display='.', color=colors.LIGHT_GREEN, image="terrain/grass.png"})
quickEntity('^', {name='hills', display='^', color=colors.SLATE, image="terrain/mountain.png", block_move=true, block_sight=true}) quickEntity('^', {name='hills', display='^', color=colors.SLATE, image="terrain/mountain.png", block_move=true, block_sight=true}, {no_teleport=true})
defineTile('@', "GRASS", nil, "HIGH_SUN_PALADIN_AERYN") defineTile('@', "GRASS", nil, "HIGH_SUN_PALADIN_AERYN")
quickEntity('1', {show_tooltip=true, name="Closed store", display='1', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}) quickEntity('1', {show_tooltip=true, name="Closed store", display='1', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}, {no_teleport=true})
quickEntity('2', {show_tooltip=true, name="Armour Smith", display='2', color=colors.UMBER, resolvers.store("ARMOR"), image="terrain/wood_store_armor.png"}) quickEntity('2', {show_tooltip=true, name="Armour Smith", display='2', color=colors.UMBER, resolvers.store("ARMOR"), image="terrain/wood_store_armor.png"}, {no_teleport=true})
quickEntity('3', {show_tooltip=true, name="Weapon Smith", display='3', color=colors.UMBER, resolvers.store("WEAPON"), image="terrain/wood_store_weapon.png"}) quickEntity('3', {show_tooltip=true, name="Weapon Smith", display='3', color=colors.UMBER, resolvers.store("WEAPON"), image="terrain/wood_store_weapon.png"}, {no_teleport=true})
quickEntity('4', {show_tooltip=true, name="Alchemist", display='4', color=colors.LIGHT_BLUE, resolvers.store("POTION"), image="terrain/wood_store_potion.png"}) quickEntity('4', {show_tooltip=true, name="Alchemist", display='4', color=colors.LIGHT_BLUE, resolvers.store("POTION"), image="terrain/wood_store_potion.png"}, {no_teleport=true})
quickEntity('5', {show_tooltip=true, name="Scribe", display='5', color=colors.WHITE, resolvers.store("SCROLL"), resolvers.chatfeature("magic-store"), image="terrain/wood_store_book.png"}) quickEntity('5', {show_tooltip=true, name="Scribe", display='5', color=colors.WHITE, resolvers.store("SCROLL"), resolvers.chatfeature("magic-store"), image="terrain/wood_store_book.png"}, {no_teleport=true})
quickEntity('6', {show_tooltip=true, name="Closed store", display='6', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}) quickEntity('6', {show_tooltip=true, name="Closed store", display='6', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}, {no_teleport=true})
quickEntity('7', {show_tooltip=true, name="Closed store", display='7', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}) quickEntity('7', {show_tooltip=true, name="Closed store", display='7', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}, {no_teleport=true})
quickEntity('8', {show_tooltip=true, name="Closed store", display='8', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}) quickEntity('8', {show_tooltip=true, name="Closed store", display='8', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}, {no_teleport=true})
quickEntity('9', {show_tooltip=true, name="Closed store", display='9', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}) quickEntity('9', {show_tooltip=true, name="Closed store", display='9', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}, {no_teleport=true})
quickEntity('0', {show_tooltip=true, name="Closed store", display='0', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}) quickEntity('0', {show_tooltip=true, name="Closed store", display='0', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}, {no_teleport=true})
quickEntity('a', {show_tooltip=true, name="Closed store", display='*', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}) quickEntity('a', {show_tooltip=true, name="Closed store", display='*', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}, {no_teleport=true})
quickEntity('b', {show_tooltip=true, name="Closed store", display='*', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}) quickEntity('b', {show_tooltip=true, name="Closed store", display='*', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}, {no_teleport=true})
quickEntity('c', {show_tooltip=true, name="Closed store", display='*', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}) quickEntity('c', {show_tooltip=true, name="Closed store", display='*', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}, {no_teleport=true})
quickEntity('d', {show_tooltip=true, name="Closed store", display='*', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}) quickEntity('d', {show_tooltip=true, name="Closed store", display='*', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}, {no_teleport=true})
quickEntity('e', {show_tooltip=true, name="Closed store", display='*', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}) quickEntity('e', {show_tooltip=true, name="Closed store", display='*', color=colors.LIGHT_UMBER, block_move=true, block_sight=true, image="terrain/wood_store_closed.png"}, {no_teleport=true})
startx = 0 startx = 0
starty = 27 starty = 27
...@@ -91,18 +92,18 @@ MMMMMM O OO MMM ...@@ -91,18 +92,18 @@ MMMMMM O OO MMM
MMM O MMM MMM O MMM
MMM OO MMMM MMM OO MMMM
MMM TTTTT O MMMMM MMM TTTTT O MMMMM
MMM TTTT-----------O------- MMMMM MMM TTTT"""""""""""O""""""" MMMMM
MMMM TT-----~~~---------------------- MMMMM MMMM TT"""""~~~"""""""""""""""""""""" MMMMM
MMMMMM TT-----~~~~~------------------::----MMMMMM MMMMMM TT"""""~~~~~""""""""""""""""""::""""MMMMMM
MMMMMMMMM------~~~~~-------TT-------::P:::::MMMMMM MMMMMMMMM""""""~~~~~"""""""TT"""""""::P:::::MMMMMM
MMMMMMMMM-------~~~-----TT-T------::::::::::MMMMMM MMMMMMMMM"""""""~~~"""""TT"T""""""::::::::::MMMMMM
MMMMMMMMM-------~~------TTTT-----::::::::P:::MMMMM MMMMMMMMM"""""""~~""""""TTTT"""""::::::::P:::MMMMM
MMMMMMMMM-----TT~-------TT------:::::P:::::MMMMMMM MMMMMMMMM"""""TT~"""""""TT"""""":::::P:::::MMMMMMM
MMMMMMMMM---TTTT~--------------::::::::::::MMMMMMM MMMMMMMMM"""TTTT~""""""""""""""::::::::::::MMMMMMM
MMMMMMMMMM--TTT~~------------::::P::::::::::MMMMMM MMMMMMMMMM""TTT~~""""""""""""::::P::::::::::MMMMMM
MMMMMMMMMMM-TT~~-------------::::::::::::P::::MMMM MMMMMMMMMMM"TT~~"""""""""""""::::::::::::P::::MMMM
MMMMMMMMMMMMMM~MMMMMMMMMM----::::P:::P::::::::MMMM MMMMMMMMMMMMMM~MMMMMMMMMM""""::::P:::P::::::::MMMM
MMMMMMMMMMMMM~~MMMMMMMMMMM--::::::P::::::::::::MMM MMMMMMMMMMMMM~~MMMMMMMMMMM""::::::P::::::::::::MMM
MMMMMMMM~~~~~~MMMMMMMMMMMMMM:::::::::::::::::MMMMM MMMMMMMM~~~~~~MMMMMMMMMMMMMM:::::::::::::::::MMMMM
MMMMMMM~~MMMMMMMMMMMMMMMMMMMMMM::::MMMMMMMMMMMMMMM MMMMMMM~~MMMMMMMMMMMMMMMMMMMMMM::::MMMMMMMMMMMMMMM
MMMMMMM~MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM]] MMMMMMM~MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM]]
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
-- darkgod@te4.org -- darkgod@te4.org
newTalent{ newTalent{
name = "???", name = "c1???",
type = {"corruption/ritual", 1}, type = {"corruption/ritual", 1},
require = corrs_req1, require = corrs_req1,
points = 5, points = 5,
...@@ -40,7 +40,7 @@ newTalent{ ...@@ -40,7 +40,7 @@ newTalent{
} }
newTalent{ newTalent{
name = "???", name = "c2???",
type = {"corruption/ritual", 2}, type = {"corruption/ritual", 2},
require = corrs_req2, require = corrs_req2,
points = 5, points = 5,
...@@ -66,7 +66,7 @@ newTalent{ ...@@ -66,7 +66,7 @@ newTalent{
} }
newTalent{ newTalent{
name = "???", name = "c3???",
type = {"corruption/ritual", 3}, type = {"corruption/ritual", 3},
require = corrs_req3, require = corrs_req3,
points = 5, points = 5,
...@@ -88,7 +88,7 @@ newTalent{ ...@@ -88,7 +88,7 @@ newTalent{
} }
newTalent{ newTalent{
name = "???", name = "c4???",
type = {"corruption/ritual", 4}, type = {"corruption/ritual", 4},
require = corrs_req4, require = corrs_req4,
points = 5, points = 5,
......
...@@ -40,7 +40,7 @@ newTalent{ ...@@ -40,7 +40,7 @@ newTalent{
} }
newTalent{ newTalent{
name = "???", name = "???1",
type = {"spell/storm",2}, type = {"spell/storm",2},
require = spells_req2, require = spells_req2,
points = 5, points = 5,
...@@ -62,7 +62,7 @@ newTalent{ ...@@ -62,7 +62,7 @@ newTalent{
} }
newTalent{ newTalent{
name = "???", name = "???2",
type = {"spell/storm",3}, type = {"spell/storm",3},
require = spells_req3, require = spells_req3,
points = 5, points = 5,
......
...@@ -55,6 +55,9 @@ return { ...@@ -55,6 +55,9 @@ return {
nb_trap = {15, 20}, nb_trap = {15, 20},
}, },
}, },
post_process = function(level)
for uid, e in pairs(level.entities) do e.faction="blue-wizards" end
end,
levels = levels =
{ {
[1] = { [1] = {
......
No preview for this file type
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