add Holiday to CHARACTER_SERIES enum

This commit is contained in:
Justin Edmund 2025-12-15 09:50:53 -08:00
parent acf8010669
commit f28e61b303
2 changed files with 18 additions and 16 deletions

View file

@ -32,14 +32,14 @@ module GranblueEnums
None: 6 None: 6
}.freeze }.freeze
# Character seasons - represents gacha availability window (when you can pull) # Character seasons - display disambiguation for seasonal variants (e.g., "Vane [Halloween]")
# If no season, value should be nil (not a default value)
CHARACTER_SEASONS = { CHARACTER_SEASONS = {
Standard: 1, Valentine: 1,
Valentine: 2, Formal: 2,
Formal: 3, Summer: 3,
Summer: 4, Halloween: 4,
Halloween: 5, Holiday: 5
Holiday: 6
}.freeze }.freeze
# Character series - represents character identity/pool membership (can have multiple) # Character series - represents character identity/pool membership (can have multiple)
@ -58,7 +58,8 @@ module GranblueEnums
Valentine: 12, Valentine: 12,
Halloween: 13, Halloween: 13,
Formal: 14, Formal: 14,
Event: 15 Holiday: 15,
Event: 16
}.freeze }.freeze
# Gacha promotions - which pools/banners a weapon or summon appears in # Gacha promotions - which pools/banners a weapon or summon appears in

View file

@ -93,18 +93,19 @@ module Granblue
'valentine' => 12, # Valentine 'valentine' => 12, # Valentine
'halloween' => 13, # Halloween 'halloween' => 13, # Halloween
'formal' => 14, # Formal 'formal' => 14, # Formal
'event' => 15 # Event 'holiday' => 15, # Holiday
'event' => 16 # Event
}.freeze }.freeze
# Maps wiki seasonal indicators to CHARACTER_SEASONS enum values # Maps wiki seasonal indicators to CHARACTER_SEASONS enum values
# Determined from page name suffix or |obtain= field # Used for display disambiguation (e.g., "Vane [Halloween]")
# If no season matches, value should be nil
self.character_seasons = { self.character_seasons = {
'standard' => 1, # Standard (year-round in their pool) 'valentine' => 1, # Valentine
'valentine' => 2, # Valentine 'formal' => 2, # Formal
'formal' => 3, # Formal 'summer' => 3, # Summer (includes Yukata)
'summer' => 4, # Summer (includes Yukata) 'halloween' => 4, # Halloween
'halloween' => 5, # Halloween 'holiday' => 5 # Holiday
'holiday' => 6 # Holiday
}.freeze }.freeze
# Maps wiki |obtain= values to PROMOTIONS enum values for weapons/summons # Maps wiki |obtain= values to PROMOTIONS enum values for weapons/summons