mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 06:04:59 +00:00
Added messages_core.dat and extracted text from it to GitHub, moved game credits to Settings, made credits translatable, tweaked some messages
This commit is contained in:
@@ -454,7 +454,7 @@ MenuHandlers.add(:pc_menu, :hall_of_fame, {
|
||||
"order" => 40,
|
||||
"condition" => proc { next $PokemonGlobal.hallOfFameLastNumber > 0 },
|
||||
"effect" => proc { |menu|
|
||||
pbMessage(_INTL("\\se[PC access]Accessed the Hall of Fame."))
|
||||
pbMessage("\\se[PC access]" + _INTL("Accessed the Hall of Fame."))
|
||||
pbHallOfFamePC
|
||||
next false
|
||||
}
|
||||
|
||||
@@ -43,62 +43,71 @@ class Scene_Credits
|
||||
TEXT_BASE_COLOR = Color.new(255, 255, 255, 255)
|
||||
TEXT_SHADOW_COLOR = Color.new(0, 0, 0, 100)
|
||||
|
||||
# This next piece of code is the credits.
|
||||
# Start Editing
|
||||
CREDIT = <<~_END_
|
||||
def convert_names_to_credits_text(names, with_final_new_line = true)
|
||||
ret = ""
|
||||
if names.length >= 5
|
||||
i = 0
|
||||
loop do
|
||||
ret += names[i] + "<s>" + (names[i + 1] || "") + "\n"
|
||||
i += 2
|
||||
break if i >= names.length
|
||||
end
|
||||
else
|
||||
names.each { |name| ret += name + "\n" }
|
||||
end
|
||||
ret += "\n" if with_final_new_line
|
||||
return ret
|
||||
end
|
||||
|
||||
Your credits go here.
|
||||
|
||||
Your credits go here.
|
||||
|
||||
Your credits go here.
|
||||
|
||||
Your credits go here.
|
||||
|
||||
Your credits go here.
|
||||
|
||||
{INSERTS_PLUGIN_CREDITS_DO_NOT_REMOVE}
|
||||
|
||||
"Pokémon Essentials" was created by:
|
||||
Poccil (Peter O.)
|
||||
Maruno
|
||||
Inspired by work by Flameguru
|
||||
|
||||
With contributions from:
|
||||
AvatarMonkeyKirby<s>Marin
|
||||
Boushy<s>MiDas Mike
|
||||
Brother1440<s>Near Fantastica
|
||||
FL.<s>PinkMan
|
||||
Genzai Kawakami<s>Popper
|
||||
Golisopod User<s>Rataime
|
||||
help-14<s>Savordez
|
||||
IceGod64<s>SoundSpawn
|
||||
Jacob O. Wobbrock<s>the__end
|
||||
KitsuneKouta<s>Venom12
|
||||
Lisa Anthony<s>Wachunga
|
||||
Luka S.J.<s>
|
||||
and everyone else who helped out
|
||||
|
||||
"mkxp-z" by:
|
||||
Roza
|
||||
Based on "mkxp" by Ancurio et al.
|
||||
|
||||
"RPG Maker XP" by:
|
||||
Enterbrain
|
||||
|
||||
Pokémon is owned by:
|
||||
The Pokémon Company
|
||||
Nintendo
|
||||
Affiliated with Game Freak
|
||||
|
||||
|
||||
|
||||
This is a non-profit fan-made game.
|
||||
No copyright infringements intended.
|
||||
Please support the official games!
|
||||
|
||||
_END_
|
||||
# Stop Editing
|
||||
def get_text
|
||||
ret = ""
|
||||
Settings.game_credits.each { |line| ret += line + "\n" }
|
||||
# Add plugin credits
|
||||
if PluginManager.plugins.length > 0
|
||||
ret += "\n\n\n"
|
||||
PluginManager.plugins.each do |plugin|
|
||||
pcred = PluginManager.credits(plugin)
|
||||
ret += _INTL("\"{1}\" v.{2} by:", plugin, PluginManager.version(plugin)) + "\n"
|
||||
ret += convert_names_to_credits_text(pcred)
|
||||
end
|
||||
end
|
||||
# Add Essentials credits
|
||||
ret += "\n\n\n"
|
||||
ret += _INTL("\"Pokémon Essentials\" was created by:") + "\n"
|
||||
ret += convert_names_to_credits_text([
|
||||
"Poccil (Peter O.)",
|
||||
"Maruno",
|
||||
_INTL("Inspired by work by Flameguru")
|
||||
])
|
||||
ret += _INTL("With contributions from:") + "\n"
|
||||
ret += convert_names_to_credits_text([
|
||||
"AvatarMonkeyKirby", "Boushy", "Brother1440", "FL.", "Genzai Kawakami",
|
||||
"Golisopod User", "help-14", "IceGod64", "Jacob O. Wobbrock", "KitsuneKouta",
|
||||
"Lisa Anthony", "Luka S.J.", "Marin", "MiDas Mike", "Near Fantastica",
|
||||
"PinkMan", "Popper", "Rataime", "Savordez", "SoundSpawn",
|
||||
"the__end", "Venom12", "Wachunga"
|
||||
], false)
|
||||
ret += _INTL("and everyone else who helped out") + "\n"
|
||||
ret += "\n"
|
||||
ret += _INTL("\"mkxp-z\" by:") + "\n"
|
||||
ret += convert_names_to_credits_text([
|
||||
"Roza",
|
||||
_INTL("Based on \"mkxp\" by Ancurio et al.")
|
||||
])
|
||||
ret += _INTL("\"RPG Maker XP\" by:") + "\n"
|
||||
ret += convert_names_to_credits_text(["Enterbrain"])
|
||||
ret += _INTL("Pokémon is owned by:") + "\n"
|
||||
ret += convert_names_to_credits_text([
|
||||
"The Pokémon Company",
|
||||
"Nintendo",
|
||||
_INTL("Affiliated with Game Freak")
|
||||
])
|
||||
ret += "\n\n"
|
||||
ret += _INTL("This is a non-profit fan-made game.") + "\n"
|
||||
ret += _INTL("No copyright infringements intended.") + "\n"
|
||||
ret += _INTL("Please support the official games!")
|
||||
return ret
|
||||
end
|
||||
|
||||
def main
|
||||
@quit = false
|
||||
@@ -114,24 +123,7 @@ class Scene_Credits
|
||||
#-------------------------------
|
||||
# Credits text Setup
|
||||
#-------------------------------
|
||||
plugin_credits = ""
|
||||
PluginManager.plugins.each do |plugin|
|
||||
pcred = PluginManager.credits(plugin)
|
||||
plugin_credits << "\"#{plugin}\" v.#{PluginManager.version(plugin)} by:\n"
|
||||
if pcred.size >= 5
|
||||
plugin_credits << (pcred[0] + "\n")
|
||||
i = 1
|
||||
until i >= pcred.size
|
||||
plugin_credits << (pcred[i] + "<s>" + (pcred[i + 1] || "") + "\n")
|
||||
i += 2
|
||||
end
|
||||
else
|
||||
pcred.each { |name| plugin_credits << (name + "\n") }
|
||||
end
|
||||
plugin_credits << "\n"
|
||||
end
|
||||
CREDIT.gsub!(/\{INSERTS_PLUGIN_CREDITS_DO_NOT_REMOVE\}/, plugin_credits)
|
||||
credit_lines = CREDIT.split(/\n/)
|
||||
credit_lines = get_text.split(/\n/)
|
||||
#-------------------------------
|
||||
# Make background and text sprites
|
||||
#-------------------------------
|
||||
|
||||
@@ -559,7 +559,7 @@ class PokemonBagScreen
|
||||
params.setRange(0, Settings::BAG_MAX_PER_SLOT)
|
||||
params.setDefaultValue(qty)
|
||||
newqty = pbMessageChooseNumber(
|
||||
_INTL("Choose new quantity of {1} (max. #{Settings::BAG_MAX_PER_SLOT}).", itemplural), params
|
||||
_INTL("Choose new quantity of {1} (max. {2}).", itemplural, Settings::BAG_MAX_PER_SLOT), params
|
||||
) { @scene.pbUpdate }
|
||||
if newqty > qty
|
||||
@bag.add(item, newqty - qty)
|
||||
|
||||
@@ -94,9 +94,9 @@ class PokemonPhone_Scene
|
||||
@sprites["list"].top_row = @sprites["list"].itemCount - @sprites["list"].page_item_max
|
||||
end
|
||||
# Set info text
|
||||
infotext = _INTL("Registered<br>")
|
||||
infotext += _INTL("<r>{1}<br>", @sprites["list"].commands.length)
|
||||
infotext += _INTL("Waiting for a rematch<r>{1}", rematch_count)
|
||||
infotext = _INTL("Registered") + "<br>"
|
||||
infotext += "<r>" + @sprites["list"].commands.length.to_s + "<br>"
|
||||
infotext += _INTL("Waiting for a rematch") + "<r>" + rematch_count.to_s
|
||||
@sprites["info"].text = infotext
|
||||
pbRefreshScreen
|
||||
end
|
||||
|
||||
@@ -18,7 +18,7 @@ def pbEmergencySave
|
||||
pbMessage("\\se[]" + _INTL("The game was saved.") + "\\me[GUI save game]\\wtnp[30]")
|
||||
pbMessage("\\se[]" + _INTL("The previous save file has been backed up.") + "\\wtnp[30]")
|
||||
else
|
||||
pbMessage("\\se[]" + _INTL("Save failed.\\wtnp[30]"))
|
||||
pbMessage("\\se[]" + _INTL("Save failed.") + "\\wtnp[30]")
|
||||
end
|
||||
$scene = oldscene
|
||||
end
|
||||
|
||||
@@ -72,7 +72,7 @@ class MoveRelearner_Scene
|
||||
textpos.push([moveData.name, 80, yPos, :left, Color.new(248, 248, 248), Color.black])
|
||||
textpos.push([_INTL("PP"), 112, yPos + 32, :left, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
if moveData.total_pp > 0
|
||||
textpos.push([_INTL("{1}/{1}", moveData.total_pp), 230, yPos + 32, :right,
|
||||
textpos.push([moveData.total_pp.to_s + "/" + moveData.total_pp.to_s, 230, yPos + 32, :right,
|
||||
Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
else
|
||||
textpos.push(["--", 230, yPos + 32, :right, Color.new(64, 64, 64), Color.new(176, 176, 176)])
|
||||
|
||||
@@ -1297,7 +1297,7 @@ MenuHandlers.add(:pc_menu, :purify_chamber, {
|
||||
"order" => 30,
|
||||
"condition" => proc { next $player.seen_purify_chamber },
|
||||
"effect" => proc { |menu|
|
||||
pbMessage(_INTL("\\se[PC access]Accessed the Purify Chamber."))
|
||||
pbMessage("\\se[PC access]" + _INTL("Accessed the Purify Chamber."))
|
||||
pbPurifyChamber
|
||||
next false
|
||||
}
|
||||
|
||||
@@ -381,7 +381,7 @@ def pbReceiveMysteryGift(id)
|
||||
gift[2].obtain_map = $game_map&.map_id || 0
|
||||
was_owned = $player.owned?(gift[2].species)
|
||||
if pbAddPokemonSilent(gift[2])
|
||||
pbMessage(_INTL("\\me[Pkmn get]{1} received {2}!", $player.name, gift[2].name))
|
||||
pbMessage("\\me[Pkmn get]" + _INTL("{1} received {2}!", $player.name, gift[2].name))
|
||||
$player.mystery_gifts[index] = [id]
|
||||
# Show Pokédex entry for new species if it hasn't been owned before
|
||||
if Settings::SHOW_NEW_SPECIES_POKEDEX_ENTRY_MORE_OFTEN && !was_owned && $player.has_pokedex
|
||||
|
||||
Reference in New Issue
Block a user