Vary oracle tree type based on pool type

This commit is contained in:
RojjaCebolla 2021-10-10 02:19:45 -04:00
parent 945291c441
commit ff6eea4a4d
2 changed files with 10 additions and 8 deletions

View file

@ -10,7 +10,7 @@ des.room({ type ="delphi", lit = 1, x=3, y=3, xalign="center", yalign="center",
notpool = { {5,2},{3,4},{7,4},{5,6} }
shuffle(notpool)
ring:set(notpool[1][1], notpool[1][2], 0)
if percent(99) then
if percent(98) then
des.terrain({ selection=ring, typ="}", lit=1 })
else
des.terrain({ selection=ring, typ="L", lit=1 })

View file

@ -24,18 +24,20 @@ des.room({ type ="delphi", lit = 1, x=3, y=3, xalign="center", yalign="center",
end
-- now actually make the ring
if percent(99) then
if percent(98) then
des.terrain({ selection=ring, typ="}", lit=1 })
des.feature("tree", 3,2)
des.feature("tree", 3,6)
des.feature("tree", 7,2)
des.feature("tree", 7,6)
else
des.terrain({ selection=ring, typ="L", lit=1 })
des.feature("dead tree", 3,2)
des.feature("dead tree", 3,6)
des.feature("dead tree", 7,2)
des.feature("dead tree", 7,6)
end
-- four trees
des.feature("tree", 3,2)
des.feature("tree", 3,6)
des.feature("tree", 7,2)
des.feature("tree", 7,6)
statuelocs = { {0,0},{10,0},{0,8},{10,8} }
shuffle(statuelocs)
des.object({ id = "statue", coord = statuelocs[1], montype = "snake", historic = 1 })