Commit beb2fd513fae8a26abf2f0e85b9d61dd6c4ec050
1 parent
07924bdd
octopus
git-svn-id: http://svn.net-core.org/repos/t-engine4@3328 51575b47-30f0-44d4-a5cc-537603b46e54
Showing
3 changed files
with
16 additions
and
3 deletions
... | ... | @@ -1050,7 +1050,7 @@ local random_zone_layouts = { |
1050 | 1050 | ["'"] = data:getDoor(), |
1051 | 1051 | } end }, |
1052 | 1052 | -- Building |
1053 | - { name="building", rarity=1, gen=function(data) | |
1053 | + { name="building", rarity=4, gen=function(data) | |
1054 | 1054 | return { |
1055 | 1055 | class = "engine.generator.map.Building", |
1056 | 1056 | lite_room_chance = rng.range(0, 100), |
... | ... | @@ -1062,6 +1062,20 @@ local random_zone_layouts = { |
1062 | 1062 | down = data:getDown(), |
1063 | 1063 | door = data:getDoor(), |
1064 | 1064 | } end }, |
1065 | + -- "Octopus" | |
1066 | + { name="octopus", rarity=6, gen=function(data) | |
1067 | + return { | |
1068 | + class = "engine.generator.map.Octopus", | |
1069 | + main_radius = {0.3, 0.4}, | |
1070 | + arms_radius = {0.1, 0.2}, | |
1071 | + arms_range = {0.7, 0.8}, | |
1072 | + nb_rooms = {5, 9}, | |
1073 | + ['.'] = data:getFloor(), | |
1074 | + ['#'] = data:getWall(), | |
1075 | + up = data:getUp(), | |
1076 | + down = data:getDown(), | |
1077 | + door = data:getDoor(), | |
1078 | + } end }, | |
1065 | 1079 | } |
1066 | 1080 | |
1067 | 1081 | local random_zone_themes = { | ... | ... |
... | ... | @@ -139,7 +139,6 @@ newEntity{ |
139 | 139 | if eff == "stun" then target:setEffect(target.EFF_STUNNED, 3, {}) |
140 | 140 | elseif eff == "blind" then target:setEffect(target.EFF_BLINDED, 3, {}) |
141 | 141 | elseif eff == "pin" then target:setEffect(target.EFF_PINNED, 3, {}) |
142 | - elseif eff == "stone" then target:setEffect(target.EFF_STONED, 3, {}) | |
143 | 142 | elseif eff == "confusion" then target:setEffect(target.EFF_CONFUSED, 3, {power=60}) |
144 | 143 | elseif eff == "silence" then target:setEffect(target.EFF_SILENCED, 3, {}) |
145 | 144 | elseif eff == "knockback" then target:knockback(who.x, who.y, 3) | ... | ... |
... | ... | @@ -181,7 +181,7 @@ newTalent{ |
181 | 181 | local target = game.level.map(tx, ty, Map.ACTOR) |
182 | 182 | if not target then return end |
183 | 183 | |
184 | - if target:checkHit(self:combatSpellpower(), target:combatSpellResist(), 0, 95, 10) and target:canBe("stone") and target:canBe("instakill") then | |
184 | + if target:checkHit(self:combatSpellpower(), target:combatSpellResist(), 0, 95, 10) and target:canBe("stun") and target:canBe("instakill") then | |
185 | 185 | target:setEffect(target.EFF_STONED, t.getDuration(self, t), {}) |
186 | 186 | game.level.map:particleEmitter(tx, ty, 1, "archery") |
187 | 187 | end | ... | ... |
-
Please register or login to post a comment