Battle Factory improvements

This commit is contained in:
infinitefusion
2022-10-02 12:42:03 -04:00
parent 68aae5f061
commit b762e653e0
42 changed files with 37920 additions and 37489 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Data/Map767.rxdata Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -514,6 +514,8 @@ module Settings
:FAIRY => [:TM45,:TM111,:TM96,:TM104] #ATTRACT DAZZLINGGLEAM MOONBLAST RECOVER :FAIRY => [:TM45,:TM111,:TM96,:TM104] #ATTRACT DAZZLINGGLEAM MOONBLAST RECOVER
} }
EXCLUDE_FROM_RANDOM_SHOPS=[:RARECANDY]
end end
# DO NOT EDIT THESE! # DO NOT EDIT THESE!

View File

@@ -188,6 +188,8 @@ class PokeBattle_Battle
when "2v1" then [2, 1] when "2v1" then [2, 1]
when "1v3" then [1, 3] when "1v3" then [1, 3]
when "1v2" then [1, 2] when "1v2" then [1, 2]
when "single" then [1, 1]
when "1v1" then [1, 1]
else default # Single, 1v1 (default) else default # Single, 1v1 (default)
end end
end end

View File

@@ -274,7 +274,23 @@ class PokemonLoadScreen
end end
end end
#todo
def copyKeybindings
#return
keybinding_path = "Data/"
keybinding_fileName="keybindings.mkxp1"
srcPath = keybinding_path+keybinding_fileName
destPath = System.data_directory + keybinding_fileName
if !File.file?(destPath)
File.copy(srcPath,destPath)
print("New default controls for controllers were copied. Please re-launch the game to enable them.")
end
end
def pbStartLoadScreen def pbStartLoadScreen
copyKeybindings()
commands = [] commands = []
cmd_continue = -1 cmd_continue = -1
cmd_new_game = -1 cmd_new_game = -1

View File

@@ -653,7 +653,7 @@ def replaceShopStockWithRandomized(stock)
newStock = [] newStock = []
for item in stock for item in stock
newItem =$PokemonGlobal.randomItemsHash[item] newItem =$PokemonGlobal.randomItemsHash[item]
if newItem != nil && GameData::Item.get(newItem).price >0 if newItem != nil && GameData::Item.get(newItem).price >0 && !Settings::EXCLUDE_FROM_RANDOM_SHOPS.include?(newItem)
newStock << newItem newStock << newItem
else else
newStock << item newStock << item

View File

@@ -26,11 +26,19 @@ def pbGetBTTrainers(challengeID)
end end
def pbGetBTPokemon(challenge_id) def pbGetBTPokemon(challenge_id)
customsOnly = !$game_switches[SWITCH_BATTLE_FACTORY_INCLUDE_ALL]
if customsOnly
return getCustomSpeciesList()
end
list=[] list=[]
for i in 0..PBSpecies.maxValue for i in 0..PBSpecies.maxValue
list << i list << i
end end
return list return list
# list=[] # list=[]
# while list.length <= target_size # while list.length <= target_size
# list << generate_random_species(max_bst) # list << generate_random_species(max_bst)

View File

@@ -984,7 +984,6 @@ module Compiler
slots.compact! slots.compact!
slots.sort! { |a, b| (a[0] == b[0]) ? a[1].to_s <=> b[1].to_s : b[0] <=> a[0] } slots.sort! { |a, b| (a[0] == b[0]) ? a[1].to_s <=> b[1].to_s : b[0] <=> a[0] }
end end
p encounter_hash
GameData::Encounter.register(encounter_hash) GameData::Encounter.register(encounter_hash)
end end
# Raise an error if a map/version combo is used twice # Raise an error if a map/version combo is used twice

View File

@@ -90,6 +90,7 @@ SWITCH_FORCE_FUSE_NEXT_POKEMON=37
SWITCH_FORCE_ALL_WILD_FUSIONS=828 SWITCH_FORCE_ALL_WILD_FUSIONS=828
SWITCH_USED_AN_INCENSE=798 SWITCH_USED_AN_INCENSE=798
SWITCH_FIRST_RIVAL_BATTLE=46 SWITCH_FIRST_RIVAL_BATTLE=46
SWITCH_BATTLE_FACTORY_INCLUDE_ALL = 775
############# #############

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Data/encounters - Copie.dat Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
Data/keybindings.mkxp1 Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -496,6 +496,13 @@ Environment = Cave
# Mt. Moon B2F # Mt. Moon B2F
Bicycle=true Bicycle=true
Environment = Cave Environment = Cave
[767]
# Mt. Moon
Bicycle=true
DarkMap=true
MapPosition=0,16,3
ShowArea=false
Environment = Cave
[106] [106]
# Route 4 # Route 4
Bicycle=true Bicycle=true