File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,10 +110,10 @@ func validate_save_schema(data: Dictionary) -> Dictionary:
110110 if not tile .has (tile_key ):
111111 return {"valid" : false , "reason" : "tile[%d ] missing key '%s '" % [i , tile_key ]}
112112 # Validate tile shape: amount must be numeric, resource must be string
113- var amt : = tile .get ("amount" , - 1 )
113+ var amt : Variant = tile .get ("amount" , - 1 )
114114 if typeof (amt ) != TYPE_INT and typeof (amt ) != TYPE_FLOAT :
115115 return {"valid" : false , "reason" : "tile[%d ].amount must be numeric" % i }
116- var res : = tile .get ("resource" , "" )
116+ var res : Variant = tile .get ("resource" , "" )
117117 if typeof (res ) != TYPE_STRING :
118118 return {"valid" : false , "reason" : "tile[%d ].resource must be string" % i }
119119 # build_kind is optional; if present must be string
Original file line number Diff line number Diff line change @@ -348,8 +348,8 @@ func _on_startup_new_game() -> void:
348348 sync_dock_option (chosen_anchor )
349349 save_settings ()
350350 # Backup current save before destructive reset (issue #178)
351- var _gs : = GameState .new ()
352- var _bk : = _gs .backup_save ()
351+ var _gs : GameState = GameState .new ()
352+ var _bk : String = _gs .backup_save ()
353353 if not _bk .is_empty ():
354354 push_event_safe ("Backup saved before reset: %s " % _bk .get_file ())
355355 apply_dock_position ()
You can’t perform that action at this time.
0 commit comments