Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Tales of MajEyal
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
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
tome
Tales of MajEyal
Commits
c79649d8
Commit
c79649d8
authored
5 years ago
by
Lisa Greene
Browse files
Options
Downloads
Patches
Plain Diff
Better way of going about sleeping dragons
parent
acd81c17
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!608
Update living weapons and sleeping dragons vaults
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/modules/tome/data/maps/vaults/auto/greater/sleeping-dragons.lua
+10
-10
10 additions, 10 deletions
...s/tome/data/maps/vaults/auto/greater/sleeping-dragons.lua
game/modules/tome/data/timed_effects/other.lua
+15
-0
15 additions, 0 deletions
game/modules/tome/data/timed_effects/other.lua
with
25 additions
and
10 deletions
game/modules/tome/data/maps/vaults/auto/greater/sleeping-dragons.lua
+
10
−
10
View file @
c79649d8
...
...
@@ -65,8 +65,9 @@ local check_sleep = function(self)
game
.
level
.
seen_wyrm_awoken
=
true
game
.
log
(
"The dragons here are asleep. You may try to steal their treasure... at your own risk."
)
end
if
not
self
:
hasEffect
(
self
.
EFF_SLEEP
)
then
self
:
setEffect
(
self
.
EFF_SLEEP
,
999
,
{
src
=
self
,
power
=
1
,
waking
=
0
,
insomnia
=
0
,
contagious
=
0
})
if
not
self
:
hasEffect
(
self
.
EFF_DOZING
)
then
self
:
setEffect
(
self
.
EFF_DOZING
,
999
,
{})
self
.
energy
.
value
=
0
end
return
true
end
...
...
@@ -78,7 +79,7 @@ local aggro_wyrm = function()
game
.
level
.
wyrm_awoken
=
true
for
uid
,
e
in
pairs
(
game
.
level
.
entities
)
do
if
e
.
sleeping_wyrm
==
true
then
e
:
removeEffect
(
e
.
EFF_
SLEEP
)
e
:
removeEffect
(
e
.
EFF_
DOZING
)
e
:
setTarget
(
game
.
player
)
end
end
...
...
@@ -104,9 +105,9 @@ local aggro_wyrm_grid = function(chance)
end
return
g
end
defineTile
(
'1'
,
aggro_wyrm_grid
(
2
),
{
random_filter
=
{
add_levels
=
25
,
type
=
"money"
}})
defineTile
(
'2'
,
aggro_wyrm_grid
(
5
),
{
random_filter
=
{
add_levels
=
1
0
,
tome_mod
=
"uvault"
}})
defineTile
(
'3'
,
aggro_wyrm_grid
(
25
),
{
random_filter
=
{
add_levels
=
1
5
,
tome_mod
=
"gvault"
}})
defineTile
(
'1'
,
aggro_wyrm_grid
(
3
),
{
random_filter
=
{
add_levels
=
25
,
type
=
"money"
}})
defineTile
(
'2'
,
aggro_wyrm_grid
(
10
),
{
random_filter
=
{
add_levels
=
1
5
,
tome_mod
=
"uvault"
}})
defineTile
(
'3'
,
aggro_wyrm_grid
(
33
),
{
random_filter
=
{
add_levels
=
2
5
,
tome_mod
=
"gvault"
}})
defineTile
(
'W'
,
"FLOOR"
,
nil
,
{
entity_mod
=
function
(
e
)
e
.
make_escort
=
nil
...
...
@@ -118,8 +119,8 @@ defineTile('W', "FLOOR", nil,
return
e
end
,
random_filter
=
{
special_rarity
=
"wyrm_rarity"
,
add_levels
=
1
5
,
random_boss
=
{
name_scheme
=
"Sleeping #rng#"
,
force_classes
=
{
Wyrmic
=
true
},
nb_classes
=
0
,
loot_quality
=
"store"
,
loot_quantity
=
1
,
rank
=
3
.
5
}
add_levels
=
1
0
,
random_boss
=
{
name_scheme
=
"Sleeping #rng#"
,
force_classes
=
{
Wyrmic
=
true
},
class_filter
=
function
(
d
)
return
d
.
power_source
and
((
d
.
power_source
.
nature
or
d
.
power_source
.
technique
)
and
not
d
.
power_source
.
arcane
)
end
,
loot_quality
=
"store"
,
loot_quantity
=
1
,
rank
=
3
.
5
}
}
}
)
...
...
@@ -134,8 +135,7 @@ defineTile('D', "FLOOR", nil,
return
e
end
,
random_filter
=
{
special_rarity
=
"drake_rarity"
,
add_levels
=
15
,
random_boss
=
{
name_scheme
=
"Dozing #rng#"
,
force_classes
=
{
Wyrmic
=
true
},
nb_classes
=
0
,
loot_quality
=
"store"
,
loot_quantity
=
1
,
rank
=
3
.
5
}
random_boss
=
{
name_scheme
=
"Dozing #rng#"
,
force_classes
=
{
Wyrmic
=
true
},
class_filter
=
function
(
d
)
return
d
.
power_source
and
((
d
.
power_source
.
nature
or
d
.
power_source
.
technique
)
and
not
d
.
power_source
.
arcane
)
end
,
nb_classes
=
1
,
loot_quality
=
"store"
,
loot_quantity
=
1
,
rank
=
3
.
5
}
}
}
)
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/timed_effects/other.lua
+
15
−
0
View file @
c79649d8
...
...
@@ -3973,4 +3973,19 @@ newEffect{
self
:
removeEffect
(
eff
.
src
.
EFF_FED_UPON
,
false
,
true
)
end
end
,
}
newEffect
{
name
=
"DOZING"
,
image
=
"talents/sleep.png"
,
desc
=
"Dozing"
,
long_desc
=
function
(
self
,
eff
)
return
"The target is completely asleep, unable to act."
end
,
type
=
"other"
,
subtype
=
{
sleep
=
true
},
status
=
"detrimental"
,
parameters
=
{
},
activate
=
function
(
self
,
eff
)
self
:
effectTemporaryValue
(
eff
,
"dont_act"
,
1
)
end
,
deactivate
=
function
(
self
,
eff
)
end
,
}
\ No newline at end of file
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