Skip to content

Commit 4c6038e

Browse files
committed
GameState: Fix parse error
gdformat is adding a parse error here! The formatter is not being disabled by the commented lines introduced, so this is a commit bypassing the formatter with --no-verify
1 parent ecd5b77 commit 4c6038e

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

scenes/globals/game_state/game_state.gd

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -308,21 +308,22 @@ func has_trinket(id: StringName) -> bool:
308308
return trinkets.any(func(t: Trinket) -> bool: return t.id == id)
309309

310310

311+
# gdformat:disable
311312
func _update_trinkets_state() -> void:
312313
_state.set_value(
313314
TRINKETS_SECTION,
314315
TRINKETS_IDS_KEY,
315316
trinkets.map(
316-
func(t: Trinket) -> Dictionary:
317-
return {
318-
"id": t.id,
319-
"name": t.name,
320-
"description": t.description,
321-
"icon": t.icon.resource_path if t.icon else "",
322-
"full_text": t.full_text,
323-
}
317+
func(t: Trinket) -> Dictionary: return {
318+
"id": t.id,
319+
"name": t.name,
320+
"description": t.description,
321+
"icon": t.icon.resource_path if t.icon else "",
322+
"full_text": t.full_text,
323+
}
324324
)
325325
)
326+
# gdformat:enable
326327

327328

328329
func _update_inventory_state() -> void:

0 commit comments

Comments
 (0)