-
Notifications
You must be signed in to change notification settings - Fork 13
STEVE!!! #155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
STEVE!!! #155
Changes from all commits
14aad9c
0d80204
9dc7fbb
a29d13b
46bc2c6
119e36c
17a5e0f
1523500
c4f3ad5
77bde48
0ca6b17
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -22,11 +22,32 @@ def parse(parser): | |||||||||
| graphics.add_argument("-ahtc", "--alternate-healing-text-color", action = "store_true", | ||||||||||
| help = "Makes healing text blue, to be able to distinguish from damage.") | ||||||||||
|
|
||||||||||
| graphics.add_argument("-steve", "--steveify", type = str, nargs='?', const='Steve', default=None, | ||||||||||
| help = "Steveify the seed: rename all characters, items, espers, magic, enemies, etc. to a given name (default: Steve)") | ||||||||||
|
|
||||||||||
| def process(args): | ||||||||||
| import graphics.palettes.palettes as palettes | ||||||||||
| import graphics.portraits.portraits as portraits | ||||||||||
| import graphics.sprites.sprites as sprites | ||||||||||
|
|
||||||||||
| if args.steveify is not None: | ||||||||||
| if isinstance(args.steveify, bool): | ||||||||||
| if args.steveify: | ||||||||||
| args.steveify = "STEVE" | ||||||||||
| else: | ||||||||||
| args.steveify = None | ||||||||||
| else: | ||||||||||
| args.steveify = args.steveify.strip() | ||||||||||
| steveify_upper = args.steveify.upper() | ||||||||||
| if steveify_upper in ("NONE", "FALSE"): | ||||||||||
| args.steveify = None | ||||||||||
| elif not args.steveify: | ||||||||||
| args.steveify = "STEVE" | ||||||||||
|
|
||||||||||
| if args.steveify is not None: | ||||||||||
| if len(args.steveify) > 6: | ||||||||||
| args.steveify = args.steveify[:6] | ||||||||||
|
|
||||||||||
| if args.character_names is not None: | ||||||||||
| args.names = args.character_names.split('.') | ||||||||||
| if len(args.names) != Characters.CHARACTER_COUNT: | ||||||||||
|
|
@@ -40,6 +61,9 @@ def process(args): | |||||||||
| else: | ||||||||||
| args.names = Characters.DEFAULT_NAME | ||||||||||
|
|
||||||||||
| if args.steveify is not None: | ||||||||||
| args.names = [args.steveify] * Characters.CHARACTER_COUNT | ||||||||||
|
Comment on lines
+64
to
+65
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since
Suggested change
|
||||||||||
|
|
||||||||||
| args.palettes = [] | ||||||||||
| if args.character_palettes: | ||||||||||
| args.palette_ids = [int(palette_id) for palette_id in args.character_palettes.split('.')] | ||||||||||
|
|
@@ -101,6 +125,8 @@ def flags(args): | |||||||||
|
|
||||||||||
| if args.character_names: | ||||||||||
| flags += " -name " + args.character_names | ||||||||||
| if args.steveify: | ||||||||||
| flags += f' -steve "{args.steveify}"' | ||||||||||
| if args.character_palettes: | ||||||||||
| flags += " -cpal " + args.character_palettes | ||||||||||
| if args.character_portraits: | ||||||||||
|
|
@@ -189,8 +215,9 @@ def _other_options_log(args): | |||||||||
|
|
||||||||||
| entries = [ | ||||||||||
| ("Remove Flashes", remove_flashes, "remove_flashes"), | ||||||||||
| ("World Minimap", world_minimap, "world_minimap"), | ||||||||||
| ("Minimap", world_minimap, "world_minimap"), | ||||||||||
| ("Healing Text", healing_text, "healing_text"), | ||||||||||
| ("Steveify", args.steveify if args.steveify else "None", "steveify"), | ||||||||||
| ] | ||||||||||
|
|
||||||||||
| for entry in entries: | ||||||||||
|
|
||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -133,6 +133,10 @@ def mod(self): | |||||||||||||
| if self.args.character_names: | ||||||||||||||
| self.mod_names() | ||||||||||||||
|
|
||||||||||||||
| if self.args.steveify: | ||||||||||||||
| for character in self.characters: | ||||||||||||||
| character.name = self.args.steveify | ||||||||||||||
|
Comment on lines
+136
to
+138
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Explicitly truncate
Suggested change
|
||||||||||||||
|
|
||||||||||||||
| if self.args.original_name_display: | ||||||||||||||
| characters_asm.show_original_names() | ||||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -164,6 +164,10 @@ def shuffle(self): | |||||||||||||
| dance.dances = abilities[ability_index : ability_index + self.DATA_SIZE] | ||||||||||||||
|
|
||||||||||||||
| def mod(self): | ||||||||||||||
| if self.args.steveify: | ||||||||||||||
| for dance in self.dances: | ||||||||||||||
| dance.name = self.args.steveify | ||||||||||||||
|
Comment on lines
+167
to
+169
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Explicitly truncate
Suggested change
|
||||||||||||||
|
|
||||||||||||||
| self.write_learners_table() | ||||||||||||||
| self.write_is_learner() | ||||||||||||||
| self.after_battle_check_mod() | ||||||||||||||
|
|
||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -75,6 +75,8 @@ def get_enemy(self, name): | |||||||||||||||||||||||||
| return enemy.id | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| def get_name(self, enemy_id): | ||||||||||||||||||||||||||
| if self.args.steveify: | ||||||||||||||||||||||||||
| return self.args.steveify | ||||||||||||||||||||||||||
|
Comment on lines
+78
to
+79
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||||||||||||||||||||||||||
| if enemy_id in bosses.enemy_name: | ||||||||||||||||||||||||||
| return bosses.enemy_name[enemy_id] | ||||||||||||||||||||||||||
| return self.enemies[enemy_id].name | ||||||||||||||||||||||||||
|
|
@@ -439,6 +441,13 @@ def print(self): | |||||||||||||||||||||||||
| enemy.print() | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| def write(self): | ||||||||||||||||||||||||||
| if self.args.steveify: | ||||||||||||||||||||||||||
| for enemy in self.enemies: | ||||||||||||||||||||||||||
| if enemy.name: | ||||||||||||||||||||||||||
| enemy.name = self.args.steveify | ||||||||||||||||||||||||||
| if enemy.special_name: | ||||||||||||||||||||||||||
| enemy.special_name = self.args.steveify | ||||||||||||||||||||||||||
|
Comment on lines
+444
to
+449
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Explicitly truncate
Suggested change
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| for enemy_index in range(len(self.enemies)): | ||||||||||||||||||||||||||
| self.enemy_data[enemy_index] = self.enemies[enemy_index].data() | ||||||||||||||||||||||||||
| self.enemy_name_data[enemy_index] = self.enemies[enemy_index].name_data() | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -275,6 +275,10 @@ def multi_summon(self): | |||||||||||||
| space = Reserve(0x24da3, 0x24da5, "espers set used in battle bit", asm.NOP()) | ||||||||||||||
|
|
||||||||||||||
| def mod(self, dialogs): | ||||||||||||||
| if self.args.steveify: | ||||||||||||||
| for esper in self.espers: | ||||||||||||||
| esper.name = self.args.steveify | ||||||||||||||
|
Comment on lines
+278
to
+280
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Explicitly truncate
Suggested change
|
||||||||||||||
|
|
||||||||||||||
| self.receive_dialogs_mod(dialogs) | ||||||||||||||
|
|
||||||||||||||
| if self.args.esper_spells_shuffle or self.args.esper_spells_shuffle_random_rates: | ||||||||||||||
|
|
@@ -353,7 +357,7 @@ def get_receive_esper_dialog(self, esper): | |||||||||||||
| return self.receive_dialogs[esper] | ||||||||||||||
|
|
||||||||||||||
| def get_name(self, esper): | ||||||||||||||
| return self.esper_names[esper] | ||||||||||||||
| return self.espers[esper].get_name() | ||||||||||||||
|
|
||||||||||||||
| def log(self): | ||||||||||||||
| from log import COLUMN_WIDTH, section_entries, format_option | ||||||||||||||
|
|
||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -34,6 +34,10 @@ def fix_reflectable_beams(self): | |||||||||||||
| self.magiteks[self.ICE_BEAM].flags2 = 0x22 | ||||||||||||||
|
|
||||||||||||||
| def mod(self): | ||||||||||||||
| if self.args.steveify: | ||||||||||||||
| for magitek in self.magiteks: | ||||||||||||||
| magitek.name = self.args.steveify | ||||||||||||||
|
Comment on lines
+37
to
+39
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Explicitly truncate
Suggested change
|
||||||||||||||
|
|
||||||||||||||
| self.fix_reflectable_beams() | ||||||||||||||
| pass | ||||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -130,6 +130,10 @@ def enable_fast_swdtech(self): | |||||||||||||
| space.write(0x00) | ||||||||||||||
|
|
||||||||||||||
| def mod(self): | ||||||||||||||
| if self.args.steveify: | ||||||||||||||
| for swdtech in self.swdtechs: | ||||||||||||||
| swdtech.name = self.args.steveify | ||||||||||||||
|
Comment on lines
+133
to
+135
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Explicitly truncate
Suggested change
|
||||||||||||||
|
|
||||||||||||||
| self.write_learners_table() | ||||||||||||||
| self.write_is_learner() | ||||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.