module GamePlay
class BattleGrounds
GR_NAMES = %w[ground_building ground_grass ground_tall_grass ground_taller_grass ground_cave
ground_mount ground_sand ground_pond ground_sea ground_under_water ground_ice ground_snow]
A_Pos = [nil, [88, 157 + 10], [88, 157 + 10]]
def set_bitmap
if $game_temp.battleback_name.to_s.empty?
zone_type = $env.get_zone_type
zone_type += 1 if zone_type > 0 || $env.grass?
ground_name = GR_NAMES[zone_type].to_s
else
ground_name = $game_temp.battleback_name.sub('back_', 'ground_')
end
ground_name = ground_name.sub('ground_', 'ground_act_') if @actors
super(ground_name, :battleback)
set_origin(bitmap.width / 2, bitmap.height / 2)
end
def calibrate
arr = @actors ? A_Pos : E_Pos
if $game_temp.vs_type == 2
self.zoom = @actors ? 1 : 1.5
end
set_position(*arr[$game_temp.vs_type])
end
end
end