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
Lisa Greene
Tales of MajEyal
Commits
448b1008
Commit
448b1008
authored
14 years ago
by
dg
Browse files
Options
Downloads
Patches
Plain Diff
plop
git-svn-id:
http://svn.net-core.org/repos/t-engine4@1913
51575b47-30f0-44d4-a5cc-537603b46e54
parent
2a8e7ec5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
game/modules/tome/class/Game.lua
+2
-2
2 additions, 2 deletions
game/modules/tome/class/Game.lua
game/modules/tome/data/quests/lightning-overload.lua
+1
-0
1 addition, 0 deletions
game/modules/tome/data/quests/lightning-overload.lua
with
3 additions
and
2 deletions
game/modules/tome/class/Game.lua
+
2
−
2
View file @
448b1008
...
...
@@ -394,8 +394,8 @@ function _M:changeLevel(lev, zone, keep_old_lev, force_down)
-- Decay level ?
if
self
.
level
.
last_turn
and
self
.
level
.
data
.
decay
and
self
.
level
.
last_turn
+
self
.
level
.
data
.
decay
[
1
]
*
10
<
self
.
turn
then
local
nb_actor
,
remain_actor
=
self
.
level
:
decay
(
Map
.
ACTOR
,
function
(
e
)
return
not
e
.
unique
and
not
e
.
lore
and
self
.
level
.
last_turn
+
rng
.
range
(
self
.
level
.
data
.
decay
[
1
],
self
.
level
.
data
.
decay
[
2
])
<
self
.
turn
*
10
end
)
local
nb_object
,
remain_object
=
self
.
level
:
decay
(
Map
.
OBJECT
,
function
(
e
)
return
not
e
.
unique
and
not
e
.
lore
and
self
.
level
.
last_turn
+
rng
.
range
(
self
.
level
.
data
.
decay
[
1
],
self
.
level
.
data
.
decay
[
2
])
<
self
.
turn
*
10
end
)
local
nb_actor
,
remain_actor
=
self
.
level
:
decay
(
Map
.
ACTOR
,
function
(
e
)
return
not
e
.
unique
and
not
e
.
lore
and
not
e
.
quest
and
self
.
level
.
last_turn
+
rng
.
range
(
self
.
level
.
data
.
decay
[
1
],
self
.
level
.
data
.
decay
[
2
])
<
self
.
turn
*
10
end
)
local
nb_object
,
remain_object
=
self
.
level
:
decay
(
Map
.
OBJECT
,
function
(
e
)
return
not
e
.
unique
and
not
e
.
lore
and
not
e
.
quest
and
self
.
level
.
last_turn
+
rng
.
range
(
self
.
level
.
data
.
decay
[
1
],
self
.
level
.
data
.
decay
[
2
])
<
self
.
turn
*
10
end
)
local
gen
=
self
.
zone
:
getGenerator
(
"actor"
,
self
.
level
)
if
gen
.
regenFrom
then
gen
:
regenFrom
(
remain_actor
)
end
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/quests/lightning-overload.lua
+
1
−
0
View file @
448b1008
...
...
@@ -61,6 +61,7 @@ on_grant = function(self, who)
tries
=
tries
+
1
end
if
tries
<
100
then
m
.
quest
=
true
m
.
on_die
=
function
(
self
)
game
.
player
:
hasQuest
(
"lightning-overload"
):
kill_one
()
end
...
...
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