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
cf309c27
There was a problem fetching the pipeline summary.
Commit
cf309c27
authored
6 years ago
by
DarkGod
Browse files
Options
Downloads
Patches
Plain Diff
plops
parent
65ae20ba
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!509
WIP: Orange tooltip edits
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
game/modules/tome/data/zones/test/mapscripts/inner_outer.lua
+9
-5
9 additions, 5 deletions
game/modules/tome/data/zones/test/mapscripts/inner_outer.lua
with
9 additions
and
5 deletions
game/modules/tome/data/zones/test/mapscripts/inner_outer.lua
+
9
−
5
View file @
cf309c27
...
...
@@ -69,9 +69,10 @@ tm:applyOnGroups(rooms, function(w, h, data, room, idx)
print
(
"ROOM"
,
idx
,
"::"
,
rw
,
rh
,
"=>"
,
rw
*
rh
)
tm
:
fillGroup
(
room
,
'.'
)
if
noroomforest
and
rw
>=
8
and
rh
>=
8
then
local
pond
=
Heightmap
.
new
(
1
.
6
,
{
up_left
=
0
,
down_left
=
0
,
up_right
=
0
,
down_right
=
0
,
middle
=
1
}):
make
(
rw
,
rh
,
{
' '
,
'T'
,
'='
,
'='
,
';'
})
local
pond
=
Heightmap
.
new
(
1
.
6
,
{
up_left
=
0
,
down_left
=
0
,
up_right
=
0
,
down_right
=
0
,
middle
=
1
}):
make
(
rw
-
2
,
rh
-
2
,
{
' '
,
'T'
,
'='
,
'='
,
';'
})
pond
:
printResult
()
tm
:
merge
(
p1
.
x
,
p1
.
y
,
pond
)
tm
:
fillGroup
(
room
,
';'
)
tm
:
merge
(
p1
.
x
+
1
,
p1
.
y
+
1
,
pond
)
noroomforest
=
false
end
-- table.print()
...
...
@@ -86,11 +87,14 @@ if noroomforest then return self:regenerate() end
tm
:
fillAll
()
-- Elimitate the rest
--
if tm:eliminateByFloodfill{'#', 'T'} < 400 then return self:regenerate() end
if
tm
:
eliminateByFloodfill
{
'#'
,
'T'
}
<
400
then
return
self
:
regenerate
()
end
-- tm:printResult()
-- local noise = Noise.new():make(12, 12, {'T', 'T', '=', '=', '=', ';', ';'})
-- noise:printResult()
print
(
'---==============---'
)
local
noise
=
Noise
.
new
():
make
(
12
,
12
,
{
'T'
,
'T'
,
'='
,
'='
,
'='
,
';'
,
';'
})
noise
:
printResult
()
print
(
'---==============---'
)
return
tm
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