Fixed quote marks around LoseText in trainers.txt

This commit is contained in:
Maruno17
2021-10-03 22:42:18 +01:00
parent 929a039f04
commit 1f9ba94432
3 changed files with 22 additions and 22 deletions

View File

@@ -13,7 +13,7 @@ module GameData
SCHEMA = { SCHEMA = {
"Items" => [:items, "*e", :Item], "Items" => [:items, "*e", :Item],
"LoseText" => [:lose_text, "s"], "LoseText" => [:lose_text, "q"],
"Pokemon" => [:pokemon, "ev", :Species], # Species, level "Pokemon" => [:pokemon, "ev", :Species], # Species, level
"Form" => [:form, "u"], "Form" => [:form, "u"],
"Name" => [:name, "s"], "Name" => [:name, "s"],

View File

@@ -592,7 +592,7 @@ module Compiler
end end
f.write(sprintf("Items = %s\r\n", trainer.items.join(","))) if trainer.items.length > 0 f.write(sprintf("Items = %s\r\n", trainer.items.join(","))) if trainer.items.length > 0
if trainer.real_lose_text && !trainer.real_lose_text.empty? if trainer.real_lose_text && !trainer.real_lose_text.empty?
f.write(sprintf("LoseText = %s\r\n", csvQuoteAlways(trainer.real_lose_text))) f.write(sprintf("LoseText = %s\r\n", trainer.real_lose_text))
end end
trainer.pokemon.each do |pkmn| trainer.pokemon.each do |pkmn|
f.write(sprintf("Pokemon = %s,%d\r\n", pkmn[:species], pkmn[:level])) f.write(sprintf("Pokemon = %s,%d\r\n", pkmn[:species], pkmn[:level]))

View File

@@ -1,13 +1,13 @@
# See the documentation on the wiki to learn how to edit this file. # See the documentation on the wiki to learn how to edit this file.
#------------------------------- #-------------------------------
[CAMPER,Liam] [CAMPER,Liam]
LoseText = "A very good battle, indeed!" LoseText = A very good battle, indeed!
Pokemon = DIGLETT,10 Pokemon = DIGLETT,10
Pokemon = BONSLY,11 Pokemon = BONSLY,11
#------------------------------- #-------------------------------
[LEADER_Brock,Brock] [LEADER_Brock,Brock]
Items = FULLRESTORE,FULLRESTORE Items = FULLRESTORE,FULLRESTORE
LoseText = "Very good." LoseText = Very good.
Pokemon = GEODUDE,12 Pokemon = GEODUDE,12
Gender = male Gender = male
Moves = DEFENSECURL,HEADSMASH,ROCKPOLISH,ROCKTHROW Moves = DEFENSECURL,HEADSMASH,ROCKPOLISH,ROCKTHROW
@@ -24,92 +24,92 @@ Pokemon = ONIX,14
Ball = HEAVYBALL Ball = HEAVYBALL
#------------------------------- #-------------------------------
[TEAMROCKET_M,Grunt,1] [TEAMROCKET_M,Grunt,1]
LoseText = "You're too good for me!" LoseText = You're too good for me!
Pokemon = WEEPINBELL,21 Pokemon = WEEPINBELL,21
Shadow = yes Shadow = yes
#------------------------------- #-------------------------------
[TEAMROCKET_F,Grunt,1] [TEAMROCKET_F,Grunt,1]
LoseText = "You're too good for me!" LoseText = You're too good for me!
Pokemon = BURMY,19 Pokemon = BURMY,19
Pokemon = WINGULL,19 Pokemon = WINGULL,19
Pokemon = ELECTABUZZ,20 Pokemon = ELECTABUZZ,20
Shadow = yes Shadow = yes
#------------------------------- #-------------------------------
[YOUNGSTER,Ben] [YOUNGSTER,Ben]
LoseText = "Aww, I lost." LoseText = Aww, I lost.
Pokemon = RATTATA,11 Pokemon = RATTATA,11
Pokemon = EKANS,11 Pokemon = EKANS,11
#------------------------------- #-------------------------------
[CAMPER,Jeff] [CAMPER,Jeff]
LoseText = "A very good battle, indeed!" LoseText = A very good battle, indeed!
Pokemon = SPEAROW,16 Pokemon = SPEAROW,16
Pokemon = SENTRET,16 Pokemon = SENTRET,16
#------------------------------- #-------------------------------
[CAMPER,Jeff,1] [CAMPER,Jeff,1]
LoseText = "You beat me again!" LoseText = You beat me again!
Pokemon = FEAROW,29 Pokemon = FEAROW,29
Pokemon = FURRET,29 Pokemon = FURRET,29
#------------------------------- #-------------------------------
[PICNICKER,Susie] [PICNICKER,Susie]
LoseText = "Defeated! Oh my!" LoseText = Defeated! Oh my!
Pokemon = MEOWTH,18 Pokemon = MEOWTH,18
#------------------------------- #-------------------------------
[PICNICKER,Susie,1] [PICNICKER,Susie,1]
LoseText = "Defeated! Oh my!" LoseText = Defeated! Oh my!
Pokemon = PERSIAN,32 Pokemon = PERSIAN,32
#------------------------------- #-------------------------------
[HIKER,Ford] [HIKER,Ford]
LoseText = "You're too good for me!" LoseText = You're too good for me!
Pokemon = MACHOP,19 Pokemon = MACHOP,19
#------------------------------- #-------------------------------
[FISHERMAN,Andrew] [FISHERMAN,Andrew]
LoseText = "Washed out!" LoseText = Washed out!
Pokemon = MAGIKARP,14 Pokemon = MAGIKARP,14
Pokemon = MAGIKARP,18 Pokemon = MAGIKARP,18
#------------------------------- #-------------------------------
[BEAUTY,Bridget] [BEAUTY,Bridget]
LoseText = "My Skitty!" LoseText = My Skitty!
Pokemon = SKITTY,18 Pokemon = SKITTY,18
#------------------------------- #-------------------------------
[LASS,Crissy] [LASS,Crissy]
LoseText = "You didn't have to win so convincingly!" LoseText = You didn't have to win so convincingly!
Pokemon = PLUSLE,17 Pokemon = PLUSLE,17
Pokemon = MINUN,17 Pokemon = MINUN,17
#------------------------------- #-------------------------------
[COOLCOUPLE,Alice & Bob] [COOLCOUPLE,Alice & Bob]
LoseText = "Our teamwork failed!" LoseText = Our teamwork failed!
Pokemon = TURTWIG,19 Pokemon = TURTWIG,19
Pokemon = CHIMCHAR,19 Pokemon = CHIMCHAR,19
#------------------------------- #-------------------------------
[POKEMONTRAINER_May,May] [POKEMONTRAINER_May,May]
LoseText = "..." LoseText = ...
Pokemon = COMBUSKEN,19 Pokemon = COMBUSKEN,19
#------------------------------- #-------------------------------
[SWIMMER2_F,Ariel] [SWIMMER2_F,Ariel]
LoseText = "Washed out!" LoseText = Washed out!
Pokemon = STARYU,15 Pokemon = STARYU,15
Pokemon = GOLDEEN,11 Pokemon = GOLDEEN,11
#------------------------------- #-------------------------------
[RIVAL1,Blue] [RIVAL1,Blue]
LoseText = "Not too shabby." LoseText = Not too shabby.
Pokemon = PIDGEOTTO,17 Pokemon = PIDGEOTTO,17
Pokemon = RATTATA,15 Pokemon = RATTATA,15
Pokemon = BULBASAUR,18 Pokemon = BULBASAUR,18
#------------------------------- #-------------------------------
[RIVAL1,Blue,1] [RIVAL1,Blue,1]
LoseText = "Not too shabby." LoseText = Not too shabby.
Pokemon = PIDGEOTTO,17 Pokemon = PIDGEOTTO,17
Pokemon = RATTATA,15 Pokemon = RATTATA,15
Pokemon = CHARMANDER,18 Pokemon = CHARMANDER,18
#------------------------------- #-------------------------------
[RIVAL1,Blue,2] [RIVAL1,Blue,2]
LoseText = "Not too shabby." LoseText = Not too shabby.
Pokemon = PIDGEOTTO,17 Pokemon = PIDGEOTTO,17
Pokemon = RATTATA,15 Pokemon = RATTATA,15
Pokemon = SQUIRTLE,18 Pokemon = SQUIRTLE,18
#------------------------------- #-------------------------------
[CHAMPION,Blue] [CHAMPION,Blue]
LoseText = "A good battle indeed!" LoseText = A good battle indeed!
Pokemon = VENUSAUR,63 Pokemon = VENUSAUR,63
Item = SITRUSBERRY Item = SITRUSBERRY
Pokemon = CHARIZARD,63 Pokemon = CHARIZARD,63