Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
K'van
Tales of MajEyal
Commits
2d971436
Commit
2d971436
authored
11 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
Added some new .. things .. to spice up Ardhungol
parent
30b28814
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/modules/tome/data/zones/ardhungol/grids.lua
+30
-0
30 additions, 0 deletions
game/modules/tome/data/zones/ardhungol/grids.lua
game/modules/tome/data/zones/ardhungol/zone.lua
+1
-1
1 addition, 1 deletion
game/modules/tome/data/zones/ardhungol/zone.lua
with
31 additions
and
1 deletion
game/modules/tome/data/zones/ardhungol/grids.lua
+
30
−
0
View file @
2d971436
...
...
@@ -20,3 +20,33 @@
load
(
"/data/general/grids/basic.lua"
)
load
(
"/data/general/grids/cave.lua"
)
load
(
"/data/general/grids/water.lua"
)
newEntity
{
base
=
"CAVEFLOOR"
,
define_as
=
"WORMHOLE"
,
nice_tiler
=
false
,
name
=
"unstable wormhole"
,
display
=
'*'
,
color
=
colors
.
GREY
,
force_clone
=
true
,
damage_project
=
function
(
self
,
src
,
x
,
y
,
type
,
dam
)
local
source_talent
=
src
.
__projecting_for
and
src
.
__projecting_for
.
project_type
and
(
src
.
__projecting_for
.
project_type
.
talent_id
or
src
.
__projecting_for
.
project_type
.
talent
)
and
src
.
getTalentFromId
and
src
:
getTalentFromId
(
src
.
__projecting_for
.
project_type
.
talent
or
src
.
__projecting_for
.
project_type
.
talent_id
)
if
_G
.
type
(
dam
)
==
"table"
and
_G
.
type
(
dam
.
dam
)
==
"number"
then
dam
=
dam
.
dam
end
if
dam
and
source_talent
and
source_talent
.
is_spell
and
rng
.
percent
(
dam
/
3
)
and
not
game
.
__tmp_ardhungol_projecting
then
local
a
=
game
.
level
.
map
(
x
,
y
,
engine
.
Map
.
ACTOR
)
if
a
then
game
.
logSeen
(
src
,
"#VIOLET#The wormhole absorbs the energy of the spell and teleports %s away!"
,
a
.
name
)
a
:
teleportRandom
(
x
,
y
,
20
)
else
game
.
logSeen
({
x
=
x
,
y
=
y
},
"#VIOLET#The wormhole absorbs the energy of the spell and explodes in a burst of nullmagic!"
)
local
DT
=
engine
.
DamageType
local
grids
=
core
.
fov
.
circle_grids
(
x
,
y
,
2
,
true
)
game
.
__tmp_ardhungol_projecting
=
true
-- OMFG this is fugly :/
for
x
,
yy
in
pairs
(
grids
)
do
for
y
,
_
in
pairs
(
yy
)
do
DT
:
get
(
DT
.
MANABURN
).
projector
(
self
,
x
,
y
,
DT
.
MANABURN
,
util
.
bound
(
dam
/
2
,
1
,
200
))
end
end
game
.
__tmp_ardhungol_projecting
=
nil
game
.
level
.
map
:
particleEmitter
(
x
,
y
,
2
,
"generic_sploom"
,
{
rm
=
150
,
rM
=
180
,
gm
=
20
,
gM
=
60
,
bm
=
180
,
bM
=
200
,
am
=
80
,
aM
=
150
,
radius
=
2
,
basenb
=
120
})
end
end
end
,
resolvers
.
generic
(
function
(
e
)
e
:
addParticles
(
engine
.
Particles
.
new
(
"wormhole"
,
1
,
{}))
end
),
}
This diff is collapsed.
Click to expand it.
game/modules/tome/data/zones/ardhungol/zone.lua
+
1
−
1
View file @
2d971436
...
...
@@ -39,7 +39,7 @@ return {
class
=
"engine.generator.map.Cavern"
,
zoom
=
16
,
min_floor
=
1100
,
floor
=
"CAVEFLOOR"
,
floor
=
function
()
if
rng
.
percent
(
96
)
then
return
"CAVEFLOOR"
else
return
"WORMHOLE"
end
end
,
wall
=
"CAVEWALL"
,
up
=
"CAVE_LADDER_UP"
,
down
=
"CAVE_LADDER_DOWN"
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment