Skip to content
Snippets Groups Projects
Commit 140c1567 authored by DarkGod's avatar DarkGod
Browse files

vault

parent 97a93431
No related branches found
No related tags found
No related merge requests found
Pipeline #
Showing
with 96 additions and 15 deletions
......@@ -69,6 +69,21 @@ for i = 1, 30 do
}))
end
newEntity{ define_as = "CLIFFSIDE",
type = "floor", subtype = "rock",
name = "cliffside", image = "terrain/rocky_ground.png", add_mos = {{image = "terrain/half_wall.png"}},
display = 'v', color=colors.UMBER, back_color=colors.LIGHT_UMBER,
always_remember = true,
does_block_move = true,
block_sight = false,
pass_projectile = true,
can_pass = {pass_wall=1},
dig = "ROCKY_GROUND",
}
newEntity{
define_as = "HARDMOUNTAIN_WALL",
type = "rockwall", subtype = "rock",
......
game/modules/tome/data/gfx/shockbolt/object/artifact/the_far_hand.png

12.7 KiB

game/modules/tome/data/gfx/shockbolt/terrain/half_wall.png

10.1 KiB

......@@ -41,6 +41,7 @@ local wyrm_types = {
storm={"storm drake", "storm wyrm"},
venom={"venom drake", "venom wyrm"}
}
local wyrm_types_names = {"cold", "fire", "storm", "venom"}
roomCheck(function(room, zone, level, map)
local wyrm_types_name = rng.table(wyrm_types_names)
......@@ -55,6 +56,7 @@ roomCheck(function(room, zone, level, map)
end
return true
end)
local check_sleep = function(self)
if game.level.wyrm_awoken == true then
return true
......@@ -68,6 +70,7 @@ local check_sleep = function(self)
end
return true
end
local aggro_wyrm = function()
if game.level.wyrm_awoken == true then
return false
......@@ -82,18 +85,22 @@ local aggro_wyrm = function()
game.log("#CRIMSON#The dragons awaken from their slumber detecting their loot being stolen!")
return true
end
local aggro_wyrm_takehit = function(self, value, src)
aggro_wyrm()
self:aggro_wyrm()
return value
end
local aggro_wyrm_grid = function(chance)
local g = game.zone.grid_list.FLOOR:clone()
g.aggro_wyrm_chance = chance
g.aggro_wyrm = aggro_wyrm
g.on_move = function(self, x, y, actor, forced)
if not actor.player then return end
if forced then return end
if game.level.wyrm_awoken then return end
if not rng.percent(chance) then return end
aggro_wyrm()
if not rng.percent(self.aggro_wyrm_chance) then return end
self:aggro_wyrm()
end
return g
end
......@@ -106,6 +113,7 @@ defineTile('W', "FLOOR", nil,
e.on_seen = check_sleep
e.on_act = check_sleep
e.on_takehit = aggro_wyrm_takehit
e.aggro_wyrm = aggro_wyrm
e.sleeping_wyrm = true
return e
end,
......@@ -121,6 +129,7 @@ defineTile('D', "FLOOR", nil,
e.on_seen = check_sleep
e.on_act = check_sleep
e.on_takehit = aggro_wyrm_takehit
e.aggro_wyrm = aggro_wyrm
e.sleeping_wyrm = true
return e
end,
......
-- ToME - Tales of Maj'Eyal
-- Copyright (C) 2009 - 2019 Nicolas Casalini
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
--
-- Nicolas Casalini "DarkGod"
-- darkgod@te4.org
specialList("actor", {
"/data/general/npcs/snow-giant.lua",
})
specialList("terrain", {
"/data/general/grids/mountain.lua",
})
rotates = {"default", "90", "180", "270", "flipx", "flipy"}
defineTile('#', "HARDMOUNTAIN_WALL")
defineTile('.', "ROCKY_GROUND")
defineTile('v', "CLIFFSIDE")
defineTile('!', "DOOR_VAULT")
defineTile('$', "ROCKY_GROUND", {random_filter={add_levels=20, type="money"}})
defineTile('T', "ROCKY_GROUND", {random_filter={add_levels=5, tome_mod="gvault"}}, {random_filter={add_levels=8, name = "snow giant thunderer"}} )
defineTile('G', "ROCKY_GROUND", nil, {random_filter={add_levels=5, name = "snow giant boulder thrower"}} )
return {
[[###########]],
[[#.........#]],
[[#.vvvvvvv.#]],
[[#.v.....v.#]],
[[#.v.vGT.v.#]],
[[#.v.v$G.v.#]],
[[#.v.vvvvv.#]],
[[#.v.......#]],
[[#!#########]],
}
......@@ -194,7 +194,6 @@ defineTile('5', mod.class.Grid.new{
)
startx, starty = 0, 17
return {
[[###############################MMM#]],
[[#..+.#..z.S+...#......u....z.,MMMMM]],
[[#..#.#.~~~.###.#..V....z.....,MMMM#]],
......
......@@ -18,7 +18,7 @@
-- darkgod@te4.org
startx = 3
starty = 4
starty = 5
setStatusAll{no_teleport=true, room_map = {can_open=false}}
specialList("actor", {
......@@ -26,6 +26,7 @@ specialList("actor", {
"/data/general/npcs/molds.lua",
"/data/general/npcs/feline.lua",
"/data/general/npcs/ant.lua",
"/data/zones/ritch-tunnels/npcs.lua",
"/data/general/npcs/sandworm.lua",
"/data/general/npcs/spider.lua",
"/data/general/npcs/vermin.lua",
......@@ -33,17 +34,20 @@ specialList("actor", {
})
rotates = {"default", "90", "180", "270", "flipx", "flipy"}
defineTile(',', data.floor or data['.'] or "FLOOR")
defineTile('#', "HARDWALL")
defineTile('!', "DOOR_VAULT")
defineTile('w', "WALL")
defineTile('d', "FLOOR", {random_filter={type="tool", subtype="digger", name="iron pickaxe", ego_chance=-1000, ego_chance=-1000}})
local mobs = {
"rattlesnake",
"green worm mass",
"giant ice ant",
"giant brown ant",
"snow cat",
"green mold",
"giant grey rat",
"giant spider",
"ritch flamespitter",
"sandworm"
}
local mob = rng.tableRemove(mobs)
......@@ -51,9 +55,11 @@ local mob = rng.tableRemove(mobs)
defineTile('s', "FLOOR", {random_filter={type="scroll", ego_chance=25}}, {random_filter={name=mob}})
return {
[[#####]],
[[#sss#]],
[[#sss!]],
[[#sss#]],
[[#####]],
[[,,,,,,,,]],
[[,######,]],
[[,#sss##,]],
[[,#ssswd,]],
[[,#sss##,]],
[[,######,]],
[[,,,,,,,,]],
}
\ No newline at end of file
......@@ -73,6 +73,7 @@ return function(gen, id, lev, old_lev)
if vault then
vault:generate(lev, old_lev)
print("generated greater_vault", vaultid)
if config.settings.cheat then game.log("#GOLD#PLACED GREATER VAULT: %s", vaultid) end
end
game.level = old_game_level
gen.level.map = old_map
......
......@@ -73,6 +73,7 @@ return function(gen, id, lev, old_lev)
if vault then
vault:generate(lev, old_lev)
print("generated lesser_vault", vaultid)
if config.settings.cheat then game.log("#GOLD#PLACED LESSER VAULT: %s", vaultid) end
end
game.level = old_game_level
gen.level.map = old_map
......
......@@ -3631,7 +3631,7 @@ newEffect{
newEffect{
name = "DEMI_GODMODE",
desc = "Demigod Mode", --image = "",
desc = "Demigod Mode", image = "effects/darkgod.png",
long_desc = function(self, eff) return ("DEMI-GODMODE: Target has 10000 additional life and regenerates 2000 life per turn. It deals +500%% damage, and has full ESP."):format() end,
type = "other",
subtype = { cheat=true },
......@@ -3662,7 +3662,7 @@ newEffect{
newEffect{
name = "GODMODE",
desc = "God Mode", --image = "",
desc = "God Mode", image = "effects/darkgod.png",
long_desc = function(self, eff) return ("GODMODE: Target is invulnerable to damage, immune to bad status effects, deals +10000%% damage (100%% penetration), does not need to breathe, and has full ESP."):format() end,
type = "other",
subtype = { cheat=true },
......
......@@ -43,7 +43,7 @@ return {
edge_entrances = {2,8},
rooms = {"forest_clearing", "rocky_snowy_trees", {"lesser_vault",7}},
rooms_config = {forest_clearing={pit_chance=5, filters={{}}}},
lesser_vaults_list = {"snow-giant-camp"},
lesser_vaults_list = {"snow-giant-camp", "perilous-cliffs"},
['.'] = is_volcano and function() if rng.percent(5 + game.level.level * 6) then return "LAVA_FLOOR" else return "ROCKY_GROUND" end end or "ROCKY_GROUND",
['T'] = "ROCKY_SNOWY_TREE",
['#'] = "MOUNTAIN_WALL",
......
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