mirror of
https://github.com/badvision/lawless-legends.git
synced 2025-01-09 05:33:37 +00:00
Speed things up a little.
This commit is contained in:
parent
d17ef502e3
commit
453d44b11a
@ -1206,7 +1206,7 @@ def checkEncounter(x, y)
|
|||||||
p = p=>p_nextObj
|
p = p=>p_nextObj
|
||||||
loop
|
loop
|
||||||
|
|
||||||
// Roll for an encounter in the zone. If none, get out early.
|
// Roll for an encounter in the zone.
|
||||||
d = rand16() % 1000
|
d = rand16() % 1000
|
||||||
if p_bestZone and d < p_bestZone=>w_encChance
|
if p_bestZone and d < p_bestZone=>w_encChance
|
||||||
// Encounter!
|
// Encounter!
|
||||||
@ -1300,12 +1300,15 @@ def moveForward()
|
|||||||
fin
|
fin
|
||||||
|
|
||||||
// If there are script(s) on the new tile, run them.
|
// If there are script(s) on the new tile, run them.
|
||||||
getPos(@x, @y)
|
|
||||||
if val == 3
|
if val == 3
|
||||||
if (!checkScripts(x, y))
|
getPos(@x, @y)
|
||||||
|
if !checkScripts(x, y)
|
||||||
|
if global=>p_encounterZones
|
||||||
checkEncounter(x, y)
|
checkEncounter(x, y)
|
||||||
fin
|
fin
|
||||||
else
|
fin
|
||||||
|
elsif global=>p_encounterZones
|
||||||
|
getPos(@x, @y)
|
||||||
checkEncounter(x, y)
|
checkEncounter(x, y)
|
||||||
fin
|
fin
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user