Deleted rubyscreen.dll, eradicated semicolons from when... statements, compiling is now before setting up the system, appeased vocal dissenters

This commit is contained in:
Maruno17
2020-11-26 21:10:45 +00:00
parent 017cdb8d0f
commit eb22e49d9b
73 changed files with 905 additions and 817 deletions

View File

@@ -318,12 +318,24 @@ module PokemonDebugMixin
#===========================================================================
when "setbeauty", "setcool", "setcute", "setsmart", "settough", "setsheen"
case command
when "setbeauty"; statname = _INTL("Beauty"); defval = pkmn.beauty
when "setcool"; statname = _INTL("Cool"); defval = pkmn.cool
when "setcute"; statname = _INTL("Cute"); defval = pkmn.cute
when "setsmart"; statname = _INTL("Smart"); defval = pkmn.smart
when "settough"; statname = _INTL("Tough"); defval = pkmn.tough
when "setsheen"; statname = _INTL("Sheen"); defval = pkmn.sheen
when "setbeauty"
statname = _INTL("Beauty")
defval = pkmn.beauty
when "setcool"
statname = _INTL("Cool")
defval = pkmn.cool
when "setcute"
statname = _INTL("Cute")
defval = pkmn.cute
when "setsmart"
statname = _INTL("Smart")
defval = pkmn.smart
when "settough"
statname = _INTL("Tough")
defval = pkmn.tough
when "setsheen"
statname = _INTL("Sheen")
defval = pkmn.sheen
end
params = ChooseNumberParams.new
params.setRange(0,255)
@@ -332,12 +344,12 @@ module PokemonDebugMixin
_INTL("Set the Pokémon's {1} (max. 255).",statname),params) { pbUpdate }
if newval!=defval
case command
when "setbeauty"; pkmn.beauty = newval
when "setcool"; pkmn.cool = newval
when "setcute"; pkmn.cute = newval
when "setsmart"; pkmn.smart = newval
when "settough"; pkmn.tough = newval
when "setsheen"; pkmn.sheen = newval
when "setbeauty" then pkmn.beauty = newval
when "setcool" then pkmn.cool = newval
when "setcute" then pkmn.cute = newval
when "setsmart" then pkmn.smart = newval
when "settough" then pkmn.tough = newval
when "setsheen" then pkmn.sheen = newval
end
pbRefreshSingle(pkmnid)
end

View File

@@ -30,9 +30,9 @@ def pbSaveTypes
cname = getConstantName(PBTypes,j) rescue pbGetTypeConst(j)
next if !cname || cname==""
case PBTypes.getEffectiveness(j,i)
when PBTypeEffectiveness::SUPER_EFFECTIVE_ONE; weak.push(cname)
when PBTypeEffectiveness::NOT_EFFECTIVE_ONE; resist.push(cname)
when PBTypeEffectiveness::INEFFECTIVE; immune.push(cname)
when PBTypeEffectiveness::SUPER_EFFECTIVE_ONE then weak.push(cname)
when PBTypeEffectiveness::NOT_EFFECTIVE_ONE then resist.push(cname)
when PBTypeEffectiveness::INEFFECTIVE then immune.push(cname)
end
end
f.write("Weaknesses = "+weak.join(",")+"\r\n") if weak.length>0

View File

@@ -244,39 +244,39 @@ class SpritePositioner
Input.update
self.update
case param
when 0; @sprites["info"].setTextToFit("Ally Position = #{xpos},#{ypos}")
when 1; @sprites["info"].setTextToFit("Enemy Position = #{xpos},#{ypos}")
when 3; @sprites["info"].setTextToFit("Shadow Position = #{xpos}")
when 0 then @sprites["info"].setTextToFit("Ally Position = #{xpos},#{ypos}")
when 1 then @sprites["info"].setTextToFit("Enemy Position = #{xpos},#{ypos}")
when 3 then @sprites["info"].setTextToFit("Shadow Position = #{xpos}")
end
if Input.repeat?(Input::UP) && param!=3
ypos -= 1
case param
when 0; @metrics[SpeciesData::METRIC_PLAYER_Y][@species] = ypos
when 1; @metrics[SpeciesData::METRIC_ENEMY_Y][@species] = ypos
when 0 then @metrics[SpeciesData::METRIC_PLAYER_Y][@species] = ypos
when 1 then @metrics[SpeciesData::METRIC_ENEMY_Y][@species] = ypos
end
refresh
elsif Input.repeat?(Input::DOWN) && param!=3
ypos += 1
case param
when 0; @metrics[SpeciesData::METRIC_PLAYER_Y][@species] = ypos
when 1; @metrics[SpeciesData::METRIC_ENEMY_Y][@species] = ypos
when 0 then @metrics[SpeciesData::METRIC_PLAYER_Y][@species] = ypos
when 1 then @metrics[SpeciesData::METRIC_ENEMY_Y][@species] = ypos
end
refresh
end
if Input.repeat?(Input::LEFT)
xpos -= 1
case param
when 0; @metrics[SpeciesData::METRIC_PLAYER_X][@species] = xpos
when 1; @metrics[SpeciesData::METRIC_ENEMY_X][@species] = xpos
when 3; @metrics[SpeciesData::METRIC_SHADOW_X][@species] = xpos
when 0 then @metrics[SpeciesData::METRIC_PLAYER_X][@species] = xpos
when 1 then @metrics[SpeciesData::METRIC_ENEMY_X][@species] = xpos
when 3 then @metrics[SpeciesData::METRIC_SHADOW_X][@species] = xpos
end
refresh
elsif Input.repeat?(Input::RIGHT)
xpos += 1
case param
when 0; @metrics[SpeciesData::METRIC_PLAYER_X][@species] = xpos
when 1; @metrics[SpeciesData::METRIC_ENEMY_X][@species] = xpos
when 3; @metrics[SpeciesData::METRIC_SHADOW_X][@species] = xpos
when 0 then @metrics[SpeciesData::METRIC_PLAYER_X][@species] = xpos
when 1 then @metrics[SpeciesData::METRIC_ENEMY_X][@species] = xpos
when 3 then @metrics[SpeciesData::METRIC_SHADOW_X][@species] = xpos
end
refresh
end