diff --git a/game/core/action_economy.gd b/game/core/action_economy.gd index 604f9f68..0ac8c035 100644 --- a/game/core/action_economy.gd +++ b/game/core/action_economy.gd @@ -138,7 +138,7 @@ func notify_settlement_done(next_round_mode: String) -> bool: # 当轮行动点加量(GDD「加行动点效果给当轮」——区别于 queue_ap_delta 的下轮排队语义)。Active 受理、 # 无上限域、零随机;使用道具本身零扣费(成本在获取时已付——捡道具格不出战斗奖励)。 func grant_ap(amount: int) -> bool: - if amount <= 0 or _phase != PHASE_ACTIVE: + if amount <= 0 or _phase != Phase.ACTIVE: _reject("grant_ap") return false _ap += amount diff --git a/game/presentation/views/board_cell_unit.gd b/game/presentation/views/board_cell_unit.gd index b6391214..7187ebd4 100644 --- a/game/presentation/views/board_cell_unit.gd +++ b/game/presentation/views/board_cell_unit.gd @@ -90,7 +90,7 @@ var aux_mark := "": if aux_mark != v: aux_mark = v queue_redraw() -var mutation_mark := ":": +var mutation_mark := "": set(v): if mutation_mark != v: mutation_mark = v diff --git a/game/presentation/views/board_view.gd b/game/presentation/views/board_view.gd index 5e0dd835..484ec1b9 100644 --- a/game/presentation/views/board_view.gd +++ b/game/presentation/views/board_view.gd @@ -711,7 +711,7 @@ func _paint_cell(c: Vector2i, hero: Vector2i) -> void: u.glyph = glyph u.glyph_color = digit_col u.plate = revealed and glyph != "" # 数字色牌(原则二——已开格字形全垫牌;旗在未开格不垫) - u.outline_sides = [] + u.outline_sides.assign([]) # typed Array[int](代码审查批 3 类型收紧——assign 保持引用语义) u.facade_south = false u.proj_band = 0.0 var south_n: Vector2i = c + Vector2i(0, 1)