More WIP 5.1 stuff

This commit is contained in:
infinitefusion
2022-11-13 19:37:44 -05:00
parent 22fb1ac9a3
commit 4fcb68cba3
30 changed files with 108 additions and 12 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.

View File

@@ -6,7 +6,7 @@
module Settings module Settings
# The version of your game. It has to adhere to the MAJOR.MINOR.PATCH format. # The version of your game. It has to adhere to the MAJOR.MINOR.PATCH format.
GAME_VERSION = '5.0.0' GAME_VERSION = '5.0.0'
GAME_VERSION_NUMBER = "5.0.36" GAME_VERSION_NUMBER = "5.0.36.3"
POKERADAR_LIGHT_ANIMATION_RED_ID = 17 POKERADAR_LIGHT_ANIMATION_RED_ID = 17
POKERADAR_LIGHT_ANIMATION_GREEN_ID = 18 POKERADAR_LIGHT_ANIMATION_GREEN_ID = 18

View File

@@ -177,7 +177,7 @@ class PokeBattle_Battle
# For "1v2" names, the first number is for the player's side and the second # For "1v2" names, the first number is for the player's side and the second
# number is for the opposing side. # number is for the opposing side.
def setBattleMode(mode) def setBattleMode(mode)
default = $game_variables[242].is_a?(Array) ? $game_variables[242] : [1,1] default = $game_variables[VAR_DEFAULT_BATTLE_TYPE].is_a?(Array) ? $game_variables[VAR_DEFAULT_BATTLE_TYPE] : [1,1]
@sideSizes = @sideSizes =
case mode case mode
when "triple", "3v3" then [3, 3] when "triple", "3v3" then [3, 3]

View File

@@ -202,8 +202,13 @@ class PokeBattle_Battle
msg += _INTL("{1} sent out {2} and {3}!",t.full_name, msg += _INTL("{1} sent out {2} and {3}!",t.full_name,
@battlers[sent[0]].name,@battlers[sent[1]].name) @battlers[sent[0]].name,@battlers[sent[1]].name)
when 3 when 3
msg += _INTL("{1} sent out {2}, {3} and {4}!",t.full_name, if $PokemonTemp.battleRules["birdboss"]
@battlers[sent[0]].name,@battlers[sent[1]].name,@battlers[sent[2]].name) msg += _INTL("{1} sent out Zapmolticuno!",t.full_name)
else
msg += _INTL("{1} sent out {2}, {3} and {4}!",t.full_name,
@battlers[sent[0]].name,@battlers[sent[1]].name,@battlers[sent[2]].name)
end
end end
toSendOut.concat(sent) toSendOut.concat(sent)
end end

View File

@@ -1,4 +1,5 @@
class PokeBattle_Animation class PokeBattle_Animation
attr_writer :animDone
def initialize(sprites,viewport) def initialize(sprites,viewport)
@sprites = sprites @sprites = sprites
@viewport = viewport @viewport = viewport

View File

@@ -293,15 +293,25 @@ class PokeBattle_Scene
faintAnim = BattlerFaintAnimation.new(@sprites,@viewport,battler.index,@battle) faintAnim = BattlerFaintAnimation.new(@sprites,@viewport,battler.index,@battle)
dataBoxAnim = DataBoxDisappearAnimation.new(@sprites,@viewport,battler.index) dataBoxAnim = DataBoxDisappearAnimation.new(@sprites,@viewport,battler.index)
loop do loop do
faintAnim.update if !showFaintingAnimation(battler)
faintAnim.animDone = true
else
faintAnim.update
end
dataBoxAnim.update dataBoxAnim.update
pbUpdate pbUpdate
break if faintAnim.animDone? && dataBoxAnim.animDone? break if faintAnim.animDone? && dataBoxAnim.animDone?
end end
faintAnim.dispose faintAnim.dispose if !$PokemonTemp.battleRules["birdboss"].nil?
dataBoxAnim.dispose dataBoxAnim.dispose
end end
def showFaintingAnimation(battler)
return true if !battler.opposes?
return false if $game_switches[SWITCH_BIRDBOSS_BATTLE] && battler.battle.pbAbleCount(1) > 0
return true
end
#============================================================================= #=============================================================================
# Animates throwing a Poké Ball at a Pokémon in an attempt to catch it # Animates throwing a Poké Ball at a Pokémon in an attempt to catch it
#============================================================================= #=============================================================================

View File

@@ -30,6 +30,7 @@ class PokemonTemp
when "single", "1v1", "1v2", "2v1", "1v3", "3v1", when "single", "1v1", "1v2", "2v1", "1v3", "3v1",
"double", "2v2", "2v3", "3v2", "triple", "3v3" "double", "2v2", "2v3", "3v2", "triple", "3v3"
rules["size"] = rule.to_s.downcase rules["size"] = rule.to_s.downcase
when "birdboss" then rules["birdboss"] = true
when "canlose" then rules["canLose"] = true when "canlose" then rules["canLose"] = true
when "cannotlose" then rules["canLose"] = false when "cannotlose" then rules["canLose"] = false
when "canrun" then rules["canRun"] = true when "canrun" then rules["canRun"] = true
@@ -121,6 +122,8 @@ def pbPrepareBattle(battle)
battleRules = $PokemonTemp.battleRules battleRules = $PokemonTemp.battleRules
# The size of the battle, i.e. how many Pokémon on each side (default: "single") # The size of the battle, i.e. how many Pokémon on each side (default: "single")
battle.setBattleMode(battleRules["size"]) if !battleRules["size"].nil? || $game_switches[SWITCH_NEW_GAME_PLUS] battle.setBattleMode(battleRules["size"]) if !battleRules["size"].nil? || $game_switches[SWITCH_NEW_GAME_PLUS]
battle.setBattleMode("1v3") if !battleRules["birdboss"].nil?
# Whether the game won't black out even if the player loses (default: false) # Whether the game won't black out even if the player loses (default: false)
battle.canLose = battleRules["canLose"] if !battleRules["canLose"].nil? battle.canLose = battleRules["canLose"] if !battleRules["canLose"].nil?
# Whether the player can choose to run from the battle (default: true) # Whether the player can choose to run from the battle (default: true)
@@ -502,6 +505,8 @@ end
def pbTrainerBattle(trainerID, trainerName, endSpeech=nil, def pbTrainerBattle(trainerID, trainerName, endSpeech=nil,
doubleBattle=false, trainerPartyID=0, canLose=false, outcomeVar=1, doubleBattle=false, trainerPartyID=0, canLose=false, outcomeVar=1,
name_override=nil,trainer_type_overide=nil) name_override=nil,trainer_type_overide=nil)
#level override applies to every pokemon #level override applies to every pokemon
# If there is another NPC trainer who spotted the player at the same time, and # If there is another NPC trainer who spotted the player at the same time, and
@@ -522,7 +527,7 @@ def pbTrainerBattle(trainerID, trainerName, endSpeech=nil,
next if $game_self_switches[[$game_map.map_id,i.id,"A"]] next if $game_self_switches[[$game_map.map_id,i.id,"A"]]
otherEvent.push(i) otherEvent.push(i)
end end
# Load the trainer's data, and call an event which might modify it # Load the trainer's data, and call an event w0hich might modify it
trainer = pbLoadTrainer(trainerID,trainerName,trainerPartyID) trainer = pbLoadTrainer(trainerID,trainerName,trainerPartyID)
pbMissingTrainer(trainerID,trainerName,trainerPartyID) if !trainer pbMissingTrainer(trainerID,trainerName,trainerPartyID) if !trainer
return false if !trainer return false if !trainer

View File

@@ -226,7 +226,7 @@ def pbPokeRadarGetEncounter(rarity = 0)
array.push(enc) if enc[0] == map && GameData::Species.exists?(enc[2]) array.push(enc) if enc[0] == map && GameData::Species.exists?(enc[2])
end end
# If there are any exclusives, first have a chance of encountering those # If there are any exclusives, first have a chance of encountering those
if array.length > 0 if array.length > 0 && listPokemonInCurrentRoute($PokemonEncounters.encounter_type, false, true).length==0
rnd = rand(100) rnd = rand(100)
array.each do |enc| array.each do |enc|
rnd -= enc[1] rnd -= enc[1]

View File

@@ -734,7 +734,7 @@ module Compiler
end end
def main def main
#return return
return if !$DEBUG return if !$DEBUG
begin begin
dataFiles = [ dataFiles = [

View File

@@ -129,3 +129,4 @@ DIRECTION_DOWN = 2
DIRECTION_UP = 8 DIRECTION_UP = 8
SWITCH_BIRDBOSS_BATTLE = 824

View File

@@ -182,6 +182,7 @@ RandPokeNick = [
"Regis", "Regis",
"Cleopatra", "Cleopatra",
"Robin", "Robin",
"Obi-wan",
"pthread_cond_init", "pthread_cond_init",
"Pharaoh", "Pharaoh",
"Moskva", "Moskva",
@@ -246,6 +247,8 @@ RandPokeNick = [
"Mec", "Mec",
"Boromir", "Boromir",
"Gandalf", "Gandalf",
"Ganon",
"Ganondorf",
"Mickey", "Mickey",
"Michael Jordan", "Michael Jordan",
"POSIX", "POSIX",
@@ -271,6 +274,7 @@ RandPokeNick = [
"Mr. Bean", "Mr. Bean",
"Lover", "Lover",
"HALLOWS", "HALLOWS",
"HAL 9000",
"Trucker", "Trucker",
"idk", "idk",
"Bababa", "Bababa",
@@ -336,6 +340,7 @@ RandPokeNick = [
"thank you", "thank you",
"Lamar", "Lamar",
"CJ", "CJ",
"Tinky-Winky",
"sup", "sup",
"LOL", "LOL",
"^-^", "^-^",
@@ -379,14 +384,17 @@ RandPokeNick = [
"Allah", "Allah",
"clipou", "clipou",
"Muhammad", "Muhammad",
"Homelander",
"Gino", "Gino",
"password", "password",
"password123", "password123",
"covid", "covid",
"McLovin", "McLovin",
"Caillou",
"covfefe", "covfefe",
"admin", "admin",
"God", "God",
"Hulk",
"spaghetti-o", "spaghetti-o",
"prawn", "prawn",
"1; DROP TABLE pokemon;--", "1; DROP TABLE pokemon;--",
@@ -402,10 +410,12 @@ RandPokeNick = [
"ur welcome", "ur welcome",
"Cartman", "Cartman",
"Switch", "Switch",
"Fonzie",
"Zelda", "Zelda",
"Link", "Link",
"Mario", "Mario",
"Luigi", "Luigi",
"Aquaman",
"Waluigi", "Waluigi",
"Kirby", "Kirby",
"Samus", "Samus",
@@ -429,7 +439,6 @@ RandPokeNick = [
"Samba", "Samba",
"Bossa Nova", "Bossa Nova",
"Reggae", "Reggae",
"Spock",
"Jazz", "Jazz",
"generatedName_1", "generatedName_1",
"generatedName_2", "generatedName_2",
@@ -509,6 +518,8 @@ RandPokeNick = [
"POKEMAN2", "POKEMAN2",
"POKEMAN4", "POKEMAN4",
"Gnome", "Gnome",
"pewdiepie",
"coolbaby",
"Warbles", "Warbles",
"Primavera", "Primavera",
"Gigi", "Gigi",
@@ -542,13 +553,16 @@ RandPokeNick = [
"Misty", "Misty",
"Ash", "Ash",
"Satoshi", "Satoshi",
"Katniss",
"Sniper", "Sniper",
"Suzy", "Suzy",
"Mozart",
"Lucy", "Lucy",
"Mike", "Mike",
"Molly", "Molly",
"Leela", "Leela",
"Pauvcon", "Pauvcon",
"Pinkman",
"Fatso", "Fatso",
"Coolio", "Coolio",
"Sonata", "Sonata",
@@ -566,6 +580,7 @@ RandPokeNick = [
"Solfege", "Solfege",
"Kunidé", "Kunidé",
"Kate", "Kate",
"Darth Vader",
"Dave", "Dave",
"t bo", "t bo",
"what", "what",
@@ -596,12 +611,14 @@ RandPokeNick = [
"Morty", "Morty",
"Scheiße", "Scheiße",
"Santa", "Santa",
"Sherlock",
"Crumbs", "Crumbs",
"Neo", "Neo",
"Michael", "Michael",
"Jackson", "Jackson",
"Adamas", "Adamas",
"Tina", "Tina",
"Arya",
"Scrabble", "Scrabble",
"Tiamath", "Tiamath",
"Raggedy", "Raggedy",
@@ -623,6 +640,7 @@ RandPokeNick = [
"Jones", "Jones",
"cheers!", "cheers!",
"Frootloops", "Frootloops",
"Hypnotoad",
"T", "T",
"The Batman", "The Batman",
"Twerk", "Twerk",
@@ -637,6 +655,7 @@ RandPokeNick = [
"Macarena", "Macarena",
"Dreamer", "Dreamer",
"Beetlejuice", "Beetlejuice",
"Beethoven",
"fann", "fann",
"Gizmo", "Gizmo",
"Cannonball", "Cannonball",
@@ -684,6 +703,7 @@ RandPokeNick = [
"PlayStation", "PlayStation",
"GameCube", "GameCube",
"Petit mec", "Petit mec",
"Tarzan",
"X-Box", "X-Box",
"AAAAAAAA", "AAAAAAAA",
"cyka", "cyka",
@@ -700,12 +720,16 @@ RandPokeNick = [
"Lionel", "Lionel",
"Malicious", "Malicious",
"Supernova", "Supernova",
"Chopin",
"Agumon", "Agumon",
"mick jagger", "mick jagger",
"Greymon", "Greymon",
"Rockstar", "Rockstar",
"Shin", "Shin",
"Gargamel",
"Egg", "Egg",
"Buttercup",
"Betty",
"Emily", "Emily",
"Eminem", "Eminem",
"garcia", "garcia",
@@ -720,6 +744,7 @@ RandPokeNick = [
"DEMON", "DEMON",
"Ponytails", "Ponytails",
"monesti", "monesti",
"picklerick",
"ticon", "ticon",
"macalice", "macalice",
"Dixie", "Dixie",
@@ -734,13 +759,14 @@ RandPokeNick = [
"Conky", "Conky",
"fait chier", "fait chier",
"lamus", "lamus",
"Sonic", "sanic",
"Harry", "Harry",
"Potter", "Potter",
"Rumba", "Rumba",
"pikapika", "pikapika",
"Never Gonna Give You Up", "Never Gonna Give You Up",
"Peppy", "Peppy",
"Bart",
"Link", "Link",
"Uber", "Uber",
"Lollipop", "Lollipop",
@@ -754,8 +780,8 @@ RandPokeNick = [
"Monsta!", "Monsta!",
"virus.exe", "virus.exe",
"Limewire", "Limewire",
"Ariel",
"nothing", "nothing",
"rick and morty",
"a Pokémon", "a Pokémon",
"Popeye", "Popeye",
"Kermit", "Kermit",
@@ -769,6 +795,7 @@ RandPokeNick = [
"Sylvain", "Sylvain",
"Light", "Light",
"Peter", "Peter",
"Mr. Resetti",
"Angel", "Angel",
"Corona", "Corona",
"Cinnamon", "Cinnamon",
@@ -777,6 +804,9 @@ RandPokeNick = [
"Joker", "Joker",
"O'Neil", "O'Neil",
"Stu", "Stu",
"Dog",
"Cat",
"Spiderman",
"||||", "||||",
"Nightmare", "Nightmare",
"1", "1",
@@ -789,9 +819,12 @@ RandPokeNick = [
"Puppy", "Puppy",
"Puffy", "Puffy",
"Fi", "Fi",
"Spirou",
"FASHION", "FASHION",
"Chuckles", "Chuckles",
"Bacon", "Bacon",
"Ridley",
"Andross",
"Nightman", "Nightman",
"Dayman", "Dayman",
"Jojo", "Jojo",
@@ -801,6 +834,7 @@ RandPokeNick = [
"McNeil", "McNeil",
"Bowie", "Bowie",
"Hendrix", "Hendrix",
"Tom Nook",
"Bunny", "Bunny",
"Jina", "Jina",
"Gipsy", "Gipsy",
@@ -812,6 +846,7 @@ RandPokeNick = [
"Hilary Clinton", "Hilary Clinton",
"Metroid", "Metroid",
"Ali", "Ali",
"Bowser",
"Snoopy", "Snoopy",
"Mimi", "Mimi",
"Quebec", "Quebec",
@@ -834,6 +869,7 @@ RandPokeNick = [
"Ridley", "Ridley",
"Ursaring", "Ursaring",
"Charlie", "Charlie",
"Samus",
"Justin Trudeau", "Justin Trudeau",
"273-8255", "273-8255",
"Gino", "Gino",
@@ -843,6 +879,8 @@ RandPokeNick = [
"Macho", "Macho",
"Paddle", "Paddle",
"Tennis", "Tennis",
"Sonic",
"Knuckles",
"Chidi", "Chidi",
"OFCOURS-_-", "OFCOURS-_-",
"Baseball", "Baseball",
@@ -870,12 +908,14 @@ RandPokeNick = [
"Corsola", "Corsola",
"Glass", "Glass",
"Rocket", "Rocket",
"meh",
"Vodka", "Vodka",
"I <3 U", "I <3 U",
"Ninja", "Ninja",
"Papa", "Papa",
"Mama", "Mama",
"Fortnite", "Fortnite",
"Tintin",
"Eleanor", "Eleanor",
"Pepito", "Pepito",
"Dolphin", "Dolphin",
@@ -886,8 +926,11 @@ RandPokeNick = [
"AAAAAH!!!", "AAAAAH!!!",
"N64", "N64",
"Turnips", "Turnips",
"Taylor Swift",
"Hermione", "Hermione",
"Olaf",
"Narnia", "Narnia",
"Lucky Luke",
"Obama", "Obama",
"Freebie", "Freebie",
"un joli pokémon", "un joli pokémon",
@@ -900,6 +943,7 @@ RandPokeNick = [
"Reaper", "Reaper",
"193119", "193119",
"pokemon.png", "pokemon.png",
"Kiwi",
"Muscles", "Muscles",
"Buddy", "Buddy",
"asl", "asl",
@@ -923,8 +967,11 @@ RandPokeNick = [
"huh?", "huh?",
"Rachid", "Rachid",
"Naruto", "Naruto",
"Clicken",
"bling bling", "bling bling",
"gimme $$$", "gimme $$$",
"Masterchief",
"Better luck next time!",
"Zombie", "Zombie",
"Woofster", "Woofster",
"Turing", "Turing",
@@ -942,6 +989,8 @@ RandPokeNick = [
"Prince", "Prince",
"Princess", "Princess",
"Emperor", "Emperor",
"Cloud",
"Bilbo",
"Mimosa", "Mimosa",
"Heisenberg", "Heisenberg",
"Java", "Java",
@@ -951,12 +1000,15 @@ RandPokeNick = [
"BOOM", "BOOM",
"Cloud", "Cloud",
"Jeremy", "Jeremy",
"Ryu",
"Madrid", "Madrid",
"deez",
"Garfield", "Garfield",
"Gin", "Gin",
"Luke", "Luke",
"gracias", "gracias",
"Madonna", "Madonna",
"Kratos",
"Lucky", "Lucky",
"Pinnocchio", "Pinnocchio",
"Kylie", "Kylie",
@@ -977,10 +1029,14 @@ RandPokeNick = [
"Moby", "Moby",
"Sashimi", "Sashimi",
"Vito", "Vito",
"Boognish",
"GLaDOS",
"Chippy", "Chippy",
"Boogie", "Boogie",
"Funky", "Funky",
"Chun-Li",
"Groot", "Groot",
"Shaggy",
"Chewbacca", "Chewbacca",
"Schrroms", "Schrroms",
"Boris", "Boris",

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -3553,6 +3553,24 @@ Pokemon = BIRDBOSS,50 #
Ball = MASTERBALL Ball = MASTERBALL
AbilityIndex = 2 AbilityIndex = 2
Item = ZOOMLENS Item = ZOOMLENS
[ROCKETBOSS,Giovanni,5]
Items = FULLHEAL,FULLHEAL,FULLHEAL
Pokemon = BIRDBOSS_1,60 # #Zapdos
Moves = LIGHTSCREEN,THUNDERBOLT,DRILLPECK,ROOST
Ball = INVISIBALL
AbilityIndex = 0
Item = CHARTIBERRY
Pokemon = BIRDBOSS_2,60 # #Moltres
Moves = TAILWIND,SAFEGUARD,FLAMETHROWER,ROOST
Ball = MASTERBALL
AbilityIndex = 0
Item = CHARTIBERRY
Pokemon = BIRDBOSS_3,60 # #Articuno
Moves = HAZE,REFLECT,ICEBEAM,ROOST
Ball = INVISIBALL
AbilityIndex = 0
Item = CHARTIBERRY
######################### #########################
##### #####