mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-22 14:26:01 +00:00
Added message saving back to compiler, tweaked various messages, fixed typo of constant, fixed missing attr_reader
This commit is contained in:
@@ -97,7 +97,7 @@ EventHandlers.add(:on_player_step_taken_can_transfer, :poison_party,
|
||||
pkmn.hp -= 1 if pkmn.hp > 1 || Settings::POISON_FAINT_IN_FIELD
|
||||
if pkmn.hp == 1 && !Settings::POISON_FAINT_IN_FIELD
|
||||
pkmn.status = :NONE
|
||||
pbMessage(_INTL("{1} survived the poisoning.\\nThe poison faded away!\1", pkmn.name))
|
||||
pbMessage(_INTL("{1} survived the poisoning.\\nThe poison faded away!", pkmn.name))
|
||||
next
|
||||
elsif pkmn.hp == 0
|
||||
pkmn.changeHappiness("faint")
|
||||
@@ -114,7 +114,7 @@ EventHandlers.add(:on_player_step_taken_can_transfer, :poison_party,
|
||||
|
||||
def pbCheckAllFainted
|
||||
if $player.able_pokemon_count == 0
|
||||
pbMessage(_INTL("You have no more Pokémon that can fight!\1"))
|
||||
pbMessage(_INTL("You have no more Pokémon that can fight!") + "\1")
|
||||
pbMessage(_INTL("You blacked out!"))
|
||||
pbBGMFade(1.0)
|
||||
pbBGSFade(1.0)
|
||||
@@ -450,7 +450,7 @@ end
|
||||
module PBMoveRoute
|
||||
DOWN = 1
|
||||
LEFT = 2
|
||||
RRIGHT = 3
|
||||
RIGHT = 3
|
||||
UP = 4
|
||||
LOWER_LEFT = 5
|
||||
LOWER_RIGHT = 6
|
||||
@@ -667,15 +667,15 @@ def pbItemBall(item, quantity = 1)
|
||||
if $bag.add(item, quantity) # If item can be picked up
|
||||
meName = (item.is_key_item?) ? "Key item get" : "Item get"
|
||||
if item == :DNASPLICERS
|
||||
pbMessage(_INTL("\\me[{1}]You found \\c[1]{2}\\c[0]!\\wtnp[30]", meName, itemname))
|
||||
pbMessage("\\me[#{meName}]" + _INTL("You found \\c[1]{1}\\c[0]!", itemname) + "\\wtnp[30]")
|
||||
elsif item.is_machine? # TM or HM
|
||||
pbMessage(_INTL("\\me[{1}]You found \\c[1]{2} {3}\\c[0]!\\wtnp[30]", meName, itemname, GameData::Move.get(move).name))
|
||||
pbMessage("\\me[#{meName}]" + _INTL("You found \\c[1]{1} {2}\\c[0]!", itemname, GameData::Move.get(move).name) + "\\wtnp[30]")
|
||||
elsif quantity > 1
|
||||
pbMessage(_INTL("\\me[{1}]You found {2} \\c[1]{3}\\c[0]!\\wtnp[30]", meName, quantity, itemname))
|
||||
pbMessage("\\me[#{meName}]" + _INTL("You found {1} \\c[1]{2}\\c[0]!", quantity, itemname) + "\\wtnp[30]")
|
||||
elsif itemname.starts_with_vowel?
|
||||
pbMessage(_INTL("\\me[{1}]You found an \\c[1]{2}\\c[0]!\\wtnp[30]", meName, itemname))
|
||||
pbMessage("\\me[#{meName}]" + _INTL("You found an \\c[1]{1}\\c[0]!", itemname) + "\\wtnp[30]")
|
||||
else
|
||||
pbMessage(_INTL("\\me[{1}]You found a \\c[1]{2}\\c[0]!\\wtnp[30]", meName, itemname))
|
||||
pbMessage("\\me[#{meName}]" + _INTL("You found a \\c[1]{1}\\c[0]!", itemname) + "\\wtnp[30]")
|
||||
end
|
||||
pbMessage(_INTL("You put the {1} in\\nyour Bag's <icon=bagPocket{2}>\\c[1]{3}\\c[0] pocket.",
|
||||
itemname, pocket, PokemonBag.pocket_names[pocket - 1]))
|
||||
@@ -683,13 +683,13 @@ def pbItemBall(item, quantity = 1)
|
||||
end
|
||||
# Can't add the item
|
||||
if item.is_machine? # TM or HM
|
||||
pbMessage(_INTL("You found \\c[1]{1} {2}\\c[0]!\\wtnp[30]", itemname, GameData::Move.get(move).name))
|
||||
pbMessage(_INTL("You found \\c[1]{1} {2}\\c[0]!", itemname, GameData::Move.get(move).name) + "\\wtnp[30]")
|
||||
elsif quantity > 1
|
||||
pbMessage(_INTL("You found {1} \\c[1]{2}\\c[0]!\\wtnp[30]", quantity, itemname))
|
||||
pbMessage(_INTL("You found {1} \\c[1]{2}\\c[0]!", quantity, itemname) + "\\wtnp[30]")
|
||||
elsif itemname.starts_with_vowel?
|
||||
pbMessage(_INTL("You found an \\c[1]{1}\\c[0]!\\wtnp[30]", itemname))
|
||||
pbMessage(_INTL("You found an \\c[1]{1}\\c[0]!", itemname) + "\\wtnp[30]")
|
||||
else
|
||||
pbMessage(_INTL("You found a \\c[1]{1}\\c[0]!\\wtnp[30]", itemname))
|
||||
pbMessage(_INTL("You found a \\c[1]{1}\\c[0]!", itemname) + "\\wtnp[30]")
|
||||
end
|
||||
pbMessage(_INTL("But your Bag is full..."))
|
||||
return false
|
||||
@@ -706,15 +706,15 @@ def pbReceiveItem(item, quantity = 1)
|
||||
move = item.move
|
||||
meName = (item.is_key_item?) ? "Key item get" : "Item get"
|
||||
if item == :DNASPLICERS
|
||||
pbMessage(_INTL("\\me[{1}]You obtained \\c[1]{2}\\c[0]!\\wtnp[30]", meName, itemname))
|
||||
pbMessage("\\me[#{meName}]" + _INTL("You obtained \\c[1]{1}\\c[0]!", itemname) + "\\wtnp[30]")
|
||||
elsif item.is_machine? # TM or HM
|
||||
pbMessage(_INTL("\\me[{1}]You obtained \\c[1]{2} {3}\\c[0]!\\wtnp[30]", meName, itemname, GameData::Move.get(move).name))
|
||||
pbMessage("\\me[#{meName}]" + _INTL("You obtained \\c[1]{1} {2}\\c[0]!", itemname, GameData::Move.get(move).name) + "\\wtnp[30]")
|
||||
elsif quantity > 1
|
||||
pbMessage(_INTL("\\me[{1}]You obtained {2} \\c[1]{3}\\c[0]!\\wtnp[30]", meName, quantity, itemname))
|
||||
pbMessage("\\me[#{meName}]" + _INTL("You obtained {1} \\c[1]{2}\\c[0]!", quantity, itemname) + "\\wtnp[30]")
|
||||
elsif itemname.starts_with_vowel?
|
||||
pbMessage(_INTL("\\me[{1}]You obtained an \\c[1]{2}\\c[0]!\\wtnp[30]", meName, itemname))
|
||||
pbMessage("\\me[#{meName}]" + _INTL("You obtained an \\c[1]{1}\\c[0]!", itemname) + "\\wtnp[30]")
|
||||
else
|
||||
pbMessage(_INTL("\\me[{1}]You obtained a \\c[1]{2}\\c[0]!\\wtnp[30]", meName, itemname))
|
||||
pbMessage("\\me[#{meName}]" + _INTL("You obtained a \\c[1]{1}\\c[0]!", itemname) + "\\wtnp[30]")
|
||||
end
|
||||
if $bag.add(item, quantity) # If item can be added
|
||||
pbMessage(_INTL("You put the {1} in\\nyour Bag's <icon=bagPocket{2}>\\c[1]{3}\\c[0] pocket.",
|
||||
@@ -733,7 +733,7 @@ def pbBuyPrize(item, quantity = 1)
|
||||
item_name = (quantity > 1) ? item.portion_name_plural : item.portion_name
|
||||
pocket = item.pocket
|
||||
return false if !$bag.add(item, quantity)
|
||||
pbMessage(_INTL("\\CNYou put the {1} in\\nyour Bag's <icon=bagPocket{2}>\\c[1]{3}\\c[0] pocket.",
|
||||
item_name, pocket, PokemonBag.pocket_names[pocket - 1]))
|
||||
pbMessage("\\CN" + _INTL("You put the {1} in\\nyour Bag's <icon=bagPocket{2}>\\c[1]{3}\\c[0] pocket.",
|
||||
item_name, pocket, PokemonBag.pocket_names[pocket - 1]))
|
||||
return true
|
||||
end
|
||||
|
||||
@@ -658,7 +658,7 @@ def pbStrength
|
||||
pbMessage(_INTL("It's a big boulder, but a Pokémon may be able to push it aside."))
|
||||
return false
|
||||
end
|
||||
pbMessage(_INTL("It's a big boulder, but you may be able to push it aside with a hidden move.\1"))
|
||||
pbMessage(_INTL("It's a big boulder, but you may be able to push it aside with a hidden move.") + "\1")
|
||||
if pbConfirmMessage(_INTL("Would you like to use Strength?"))
|
||||
speciesname = (movefinder) ? movefinder.name : $player.name
|
||||
pbMessage(_INTL("{1} used {2}!", speciesname, GameData::Move.get(move).name))
|
||||
@@ -688,7 +688,7 @@ HiddenMoveHandlers::CanUseMove.add(:STRENGTH, proc { |move, pkmn, showmsg|
|
||||
|
||||
HiddenMoveHandlers::UseMove.add(:STRENGTH, proc { |move, pokemon|
|
||||
if !pbHiddenMoveAnimation(pokemon)
|
||||
pbMessage(_INTL("{1} used {2}!\1", pokemon.name, GameData::Move.get(move).name))
|
||||
pbMessage(_INTL("{1} used {2}!", pokemon.name, GameData::Move.get(move).name) + "\1")
|
||||
end
|
||||
pbMessage(_INTL("Strength made it possible to move boulders around!"))
|
||||
$PokemonMap.strengthUsed = true
|
||||
|
||||
@@ -360,7 +360,7 @@ def pbBerryPlant
|
||||
break if !pbConfirmMessage(_INTL("Want to sprinkle some water with the {1}?",
|
||||
GameData::Item.get(item).name))
|
||||
berry_plant.water
|
||||
pbMessage(_INTL("{1} watered the plant.\\wtnp[40]", $player.name))
|
||||
pbMessage(_INTL("{1} watered the plant.", $player.name) + "\\wtnp[40]")
|
||||
if Settings::NEW_BERRY_PLANTS
|
||||
pbMessage(_INTL("There! All happy!"))
|
||||
else
|
||||
@@ -375,7 +375,7 @@ def pbBerryPlant
|
||||
if Settings::NEW_BERRY_PLANTS
|
||||
# New mechanics
|
||||
if berry_plant.mulch_id
|
||||
pbMessage(_INTL("{1} has been laid down.\1", GameData::Item.get(berry_plant.mulch_id).name))
|
||||
pbMessage(_INTL("{1} has been laid down.", GameData::Item.get(berry_plant.mulch_id).name))
|
||||
else
|
||||
case pbMessage(_INTL("It's soft, earthy soil."),
|
||||
[_INTL("Fertilize"), _INTL("Plant Berry"), _INTL("Exit")], -1)
|
||||
@@ -391,7 +391,7 @@ def pbBerryPlant
|
||||
if mulch_data.is_mulch?
|
||||
berry_plant.mulch_id = mulch
|
||||
$bag.remove(mulch)
|
||||
pbMessage(_INTL("The {1} was scattered on the soil.\1", mulch_data.name))
|
||||
pbMessage(_INTL("The {1} was scattered on the soil.", mulch_data.name))
|
||||
else
|
||||
pbMessage(_INTL("That won't fertilize the soil!"))
|
||||
return
|
||||
@@ -404,7 +404,7 @@ def pbBerryPlant
|
||||
end
|
||||
else
|
||||
# Old mechanics
|
||||
return if !pbConfirmMessage(_INTL("It's soft, loamy soil.\nPlant a berry?"))
|
||||
return if !pbConfirmMessage(_INTL("It's soft, loamy soil. Want to plant a berry?"))
|
||||
ask_to_plant = false
|
||||
end
|
||||
if !ask_to_plant || pbConfirmMessage(_INTL("Want to plant a Berry?"))
|
||||
@@ -453,13 +453,13 @@ def pbPickBerry(berry, qty = 1)
|
||||
end
|
||||
$bag.add(berry, qty)
|
||||
if qty > 1
|
||||
pbMessage(_INTL("\\me[Berry get]You picked the {1} \\c[1]{2}\\c[0].\\wtnp[30]", qty, berry_name))
|
||||
pbMessage("\\me[Berry get]" + _INTL("You picked the {1} \\c[1]{2}\\c[0].", qty, berry_name) + "\\wtnp[30]")
|
||||
else
|
||||
pbMessage(_INTL("\\me[Berry get]You picked the \\c[1]{1}\\c[0].\\wtnp[30]", berry_name))
|
||||
pbMessage("\\me[Berry get]" + _INTL("You picked the \\c[1]{1}\\c[0].", berry_name) + "\\wtnp[30]")
|
||||
end
|
||||
pocket = berry.pocket
|
||||
pbMessage(_INTL("{1} put the \\c[1]{2}\\c[0] in the <icon=bagPocket{3}>\\c[1]{4}\\c[0] Pocket.\1",
|
||||
$player.name, berry_name, pocket, PokemonBag.pocket_names[pocket - 1]))
|
||||
pbMessage(_INTL("You put the {1} in\\nyour Bag's <icon=bagPocket{2}>\\c[1]{3}\\c[0] pocket.",
|
||||
berry_name, pocket, PokemonBag.pocket_names[pocket - 1]) + "\1")
|
||||
if Settings::NEW_BERRY_PLANTS
|
||||
pbMessage(_INTL("The soil returned to its soft and earthy state."))
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user