typo fixes

This commit is contained in:
betalars 2025-12-02 21:32:30 +01:00
parent 02d3a111c5
commit 630f2e99af
3 changed files with 8 additions and 5 deletions

View File

@ -213,7 +213,7 @@ func validate_board_state() -> bool:
push_error("Save %s could not be parsed: Corrupted Cards." % unique_save_name) push_error("Save %s could not be parsed: Corrupted Cards." % unique_save_name)
return false return false
for sticky in board_state.stickies.values(): for sticky in board_state.stickies.values():
if not (sticky == -1 or sticky is Vector2 or board_state.cards.keys.has(sticky)): if not (sticky is int or sticky is Vector2 or board_state.cards.keys().has(sticky)):
push_error("Save %s could not be parsed: Corrupted Sticky Notes.") push_error("Save %s could not be parsed: Corrupted Sticky Notes.")
return false return false

View File

@ -88,7 +88,7 @@ func rebuild():
State.rooms.NULL: State.rooms.NULL:
room.text = "Empty Slot" room.text = "Empty Slot"
State.rooms.YOUTH: State.rooms.YOUTH:
if save.mementos_complete == 0: if save.mementos_complete > 0:
room.text = "Youth Room" room.text = "Youth Room"
else: else:
room.text = "Intro Sequence" room.text = "Intro Sequence"

View File

@ -3,7 +3,8 @@ extends Node
var sequence_actors:Array[Array] = [] var sequence_actors:Array[Array] = []
var started_sequences: int = 0 var started_sequences: int = 0
var completed_sequences: int = 0 var completed_sequences: int = 0
var enabled_sequences: int = 63 var enabled_sequences: int = 255:
set(stuff): pass
var current_sequence: int = -1 var current_sequence: int = -1
var current_sequence_index: int = 0 var current_sequence_index: int = 0
@ -14,8 +15,8 @@ enum id {
YOUTH_JUI_JUTSU, YOUTH_JUI_JUTSU,
TRANSITION, TRANSITION,
ADULT_DND, ADULT_DND,
ADULD_VOLUNTARY, ADULT_VOLUNTARY,
ADULD_CHRISTMAS, ADULT_CHRISTMAS,
ADULT_EATING, ADULT_EATING,
ADULT_UNI, ADULT_UNI,
ADULT_THERAPY, ADULT_THERAPY,
@ -74,6 +75,8 @@ func end_current_sequence():
func is_sequence_repeating(index: int) -> bool: return completed_sequences & (1 << index) > 0 func is_sequence_repeating(index: int) -> bool: return completed_sequences & (1 << index) > 0
func is_sequence_unlocked(index: id) -> bool: return (1 << int(index)) & enabled_sequences > 0
func get_completed_total() -> int: func get_completed_total() -> int:
var i: int = completed_sequences - ((completed_sequences >> 1) & 0x55555555); var i: int = completed_sequences - ((completed_sequences >> 1) & 0x55555555);
i = (i & 0x33333333) + ((i >> 2) & 0x33333333); i = (i & 0x33333333) + ((i >> 2) & 0x33333333);