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
0e53ccf9
Commit
0e53ccf9
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@1863
51575b47-30f0-44d4-a5cc-537603b46e54
parent
11cc4469
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/GameState.lua
+4
-0
4 additions, 0 deletions
game/modules/tome/class/GameState.lua
game/modules/tome/data/general/encounters/fareast.lua
+0
-1
0 additions, 1 deletion
game/modules/tome/data/general/encounters/fareast.lua
with
4 additions
and
1 deletion
game/modules/tome/class/GameState.lua
+
4
−
0
View file @
0e53ccf9
...
...
@@ -236,6 +236,8 @@ function _M:worldDirectorAI()
end
function
_M
:
spawnWorldAmbush
(
enc
)
game
:
onTickEnd
(
function
()
local
gen
=
{
class
=
"engine.generator.map.Forest"
,
edge_entrances
=
{
4
,
6
},
sqrt_percent
=
50
,
...
...
@@ -285,6 +287,8 @@ function _M:spawnWorldAmbush(enc)
game
.
paused
=
true
game
:
changeLevel
(
1
,
zone
)
engine
.
ui
.
Dialog
:
simplePopup
(
"Ambush!"
,
"You have been ambushed!"
)
end
)
end
function
_M
:
handleWorldEncounter
(
target
)
...
...
This diff is collapsed.
Click to expand it.
game/modules/tome/data/general/encounters/fareast.lua
+
0
−
1
View file @
0e53ccf9
...
...
@@ -22,7 +22,6 @@ newEntity{
type
=
"harmless"
,
subtype
=
"special"
,
unique
=
true
,
level_range
=
{
30
,
40
},
rarity
=
1
,
coords
=
{{
x
=
0
,
y
=
0
,
w
=
100
,
h
=
100
}},
special_filter
=
function
(
self
)
return
self
:
findSpotGeneric
(
game
.
player
,
function
(
map
,
x
,
y
)
local
enc
=
map
:
checkAllEntities
(
x
,
y
,
"can_encounter"
)
return
enc
and
enc
==
"water"
end
)
and
true
or
false
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