mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
updates to version 6.1
This commit is contained in:
@@ -42,6 +42,11 @@ def pbBatteryLow?
|
||||
return false
|
||||
end
|
||||
|
||||
def pbOnBattery?
|
||||
pstate = System.power_state
|
||||
return pstate[:discharging]
|
||||
end
|
||||
|
||||
Events.onMapUpdate += proc { |_sender, _e|
|
||||
if !$PokemonTemp.batterywarning && pbBatteryLow?
|
||||
if !$game_temp.in_menu && !$game_temp.in_battle &&
|
||||
|
||||
Reference in New Issue
Block a user