Fix GDScript parse errors in game_screen.gd
- Split chained assignments (a = b = val not valid in GDScript) - Move 'and' continuations onto same line as return in lambda bodies Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -430,7 +430,8 @@ func _add_unit_mesh(unit: Dictionary, team_color: Color) -> void:
|
||||
match card_type:
|
||||
"ArchSpirit":
|
||||
var cyl := CylinderMesh.new()
|
||||
cyl.top_radius = cyl.bottom_radius = 0.22
|
||||
cyl.top_radius = 0.22
|
||||
cyl.bottom_radius = 0.22
|
||||
cyl.height = 0.8
|
||||
mi.mesh = cyl
|
||||
mat.albedo_color = team_color.lightened(0.25)
|
||||
@@ -453,7 +454,8 @@ func _add_unit_mesh(unit: Dictionary, team_color: Color) -> void:
|
||||
|
||||
_:
|
||||
var sm := SphereMesh.new()
|
||||
sm.radius = sm.height = 0.28
|
||||
sm.radius = 0.28
|
||||
sm.height = 0.28
|
||||
mi.mesh = sm
|
||||
mat.albedo_color = team_color
|
||||
var ss := SphereShape3D.new()
|
||||
@@ -832,8 +834,7 @@ func _confirm_sacrifice(unit_id: String, unit_name: String) -> void:
|
||||
func _pick_ascend_card() -> void:
|
||||
var cur_tier : int = _get_my_arch_tier()
|
||||
var candidates : Array = Game.get_hand().filter(func(c: Dictionary) -> bool:
|
||||
return c.get("cardType", "") == "ArchSpirit"
|
||||
and int(c.get("tier", 0)) == cur_tier + 1)
|
||||
return c.get("cardType", "") == "ArchSpirit" and int(c.get("tier", 0)) == cur_tier + 1)
|
||||
if candidates.is_empty(): return
|
||||
if candidates.size() == 1:
|
||||
_confirm_ascend(candidates[0])
|
||||
@@ -844,8 +845,7 @@ func _pick_ascend_card() -> void:
|
||||
|
||||
func _pick_transition_card() -> void:
|
||||
var candidates : Array = Game.get_hand().filter(func(c: Dictionary) -> bool:
|
||||
return c.get("cardType", "") == "ArchSpirit"
|
||||
and int(c.get("tier", 0)) == 1)
|
||||
return c.get("cardType", "") == "ArchSpirit" and int(c.get("tier", 0)) == 1)
|
||||
if candidates.is_empty(): return
|
||||
if candidates.size() == 1:
|
||||
_confirm_transition(candidates[0])
|
||||
|
||||
Reference in New Issue
Block a user