mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-22 14:56:17 +00:00
Conditional branch eval() fix
This commit is contained in:
parent
62418329d4
commit
ea80ecd155
2 changed files with 1 additions and 5 deletions
|
|
@ -276,7 +276,7 @@ class Interpreter
|
||||||
when 11 # button
|
when 11 # button
|
||||||
result = (Input.press?(@parameters[1]))
|
result = (Input.press?(@parameters[1]))
|
||||||
when 12 # script
|
when 12 # script
|
||||||
result = eval(@parameters[1])
|
result = !!eval(@parameters[1])
|
||||||
end
|
end
|
||||||
# Store determinant results in hash
|
# Store determinant results in hash
|
||||||
@branch[@list[@index].indent] = result
|
@branch[@list[@index].indent] = result
|
||||||
|
|
|
||||||
|
|
@ -172,10 +172,6 @@ def plight_update_timer
|
||||||
Script.tmp_v1 = ((Time.now - $game_oneshot.plight_timer) / 60).to_i
|
Script.tmp_v1 = ((Time.now - $game_oneshot.plight_timer) / 60).to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
def quit
|
|
||||||
$scene = nil
|
|
||||||
end
|
|
||||||
|
|
||||||
def activate_balcony?(ypos)
|
def activate_balcony?(ypos)
|
||||||
$game_player.y == ypos &&
|
$game_player.y == ypos &&
|
||||||
$game_player.direction == 8 &&
|
$game_player.direction == 8 &&
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue