diff --git a/growth/hand.gd b/growth/hand.gd index 4d7365a..7db0d7a 100644 --- a/growth/hand.gd +++ b/growth/hand.gd @@ -120,6 +120,7 @@ func shuffle_deck(): discard_pile.clear(); drawpile.shuffle(); active_card_index = 0; + get_node(player).shield_active = true; func get_cards() -> Array: return get_card_container().get_children().map(func(c): return c.get_node_or_null("Card")) diff --git a/growth/player.gd b/growth/player.gd index 4a51050..d54a977 100644 --- a/growth/player.gd +++ b/growth/player.gd @@ -123,4 +123,5 @@ func reboot(): position = Vector2.ZERO; velocity = Vector2.ZERO; move_state = MoveState.Still; + shield_active = true; # hand.discard_all(); diff --git a/growth/virus.gd b/growth/virus.gd index 89162b0..4c2315d 100644 --- a/growth/virus.gd +++ b/growth/virus.gd @@ -77,4 +77,6 @@ func take_hit(damage, knockback_vector, knockback_strength = 1): # Flash white? func _on_body_entered(body: Node2D) -> void: - body.take_hit(1, self.position.direction_to(body.position) * 100, 2) + if self.spawning_state == SpawningState.Spawning: + return + body.take_hit(1, self.position.direction_to(body.position) * 500, 2) diff --git a/growth/virus.tscn b/growth/virus.tscn index 2bc1f10..7918d1c 100644 --- a/growth/virus.tscn +++ b/growth/virus.tscn @@ -234,7 +234,6 @@ radius = 85.0 radius = 120.0 [node name="Virus" type="Node2D"] -position = Vector2(0, -1) script = ExtResource("1_5nuwd") [node name="HitSFX" type="AudioStreamPlayer" parent="."]