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

octopus

git-svn-id: http://svn.net-core.org/repos/t-engine4@3328 51575b47-30f0-44d4-a5cc-537603b46e54
parent 07924bdd
No related branches found
No related tags found
No related merge requests found
......@@ -1050,7 +1050,7 @@ local random_zone_layouts = {
["'"] = data:getDoor(),
} end },
-- Building
{ name="building", rarity=1, gen=function(data)
{ name="building", rarity=4, gen=function(data)
return {
class = "engine.generator.map.Building",
lite_room_chance = rng.range(0, 100),
......@@ -1062,6 +1062,20 @@ local random_zone_layouts = {
down = data:getDown(),
door = data:getDoor(),
} end },
-- "Octopus"
{ name="octopus", rarity=6, gen=function(data)
return {
class = "engine.generator.map.Octopus",
main_radius = {0.3, 0.4},
arms_radius = {0.1, 0.2},
arms_range = {0.7, 0.8},
nb_rooms = {5, 9},
['.'] = data:getFloor(),
['#'] = data:getWall(),
up = data:getUp(),
down = data:getDown(),
door = data:getDoor(),
} end },
}
local random_zone_themes = {
......
......@@ -139,7 +139,6 @@ newEntity{
if eff == "stun" then target:setEffect(target.EFF_STUNNED, 3, {})
elseif eff == "blind" then target:setEffect(target.EFF_BLINDED, 3, {})
elseif eff == "pin" then target:setEffect(target.EFF_PINNED, 3, {})
elseif eff == "stone" then target:setEffect(target.EFF_STONED, 3, {})
elseif eff == "confusion" then target:setEffect(target.EFF_CONFUSED, 3, {power=60})
elseif eff == "silence" then target:setEffect(target.EFF_SILENCED, 3, {})
elseif eff == "knockback" then target:knockback(who.x, who.y, 3)
......
......@@ -181,7 +181,7 @@ newTalent{
local target = game.level.map(tx, ty, Map.ACTOR)
if not target then return end
if target:checkHit(self:combatSpellpower(), target:combatSpellResist(), 0, 95, 10) and target:canBe("stone") and target:canBe("instakill") then
if target:checkHit(self:combatSpellpower(), target:combatSpellResist(), 0, 95, 10) and target:canBe("stun") and target:canBe("instakill") then
target:setEffect(target.EFF_STONED, t.getDuration(self, t), {})
game.level.map:particleEmitter(tx, ty, 1, "archery")
end
......
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