fixed building walls and moving cassettes around

This commit is contained in:
2026-02-11 09:49:03 +11:00
parent efd6414dfb
commit 78beaca893
5 changed files with 21 additions and 39 deletions

View File

@@ -54,7 +54,7 @@ func place_card(tower_base: TowerBase) -> void:
hero.hand.remove_at(hero.hand.contents.find(card))
hero.decrement_selected()
hero.hud.hot_wheel.update_cassettes(hero.get_wheel_cards())
tower_base.add_card(card, multiplayer.get_unique_id())
tower_base.networked_spawn_tower.rpc(Data.cards.find(card), multiplayer.get_unique_id())
hero.placed_tower.emit(tower_base.tower)
hero.place_card_audio.play()
if hero.game_manager.card_gameplay:
@@ -64,7 +64,7 @@ func place_card(tower_base: TowerBase) -> void:
func remove_card(tower_base: TowerBase) -> void:
if tower_base.has_card:
tower_base.remove_card()
tower_base.networked_remove_tower.rpc()
func spawn_tower_preview() -> void: