From 0c5df1e068ff8865545b7e1b3629377089c8b965 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 8 Aug 2026 03:57:01 +0200 Subject: zabdol som ze co --- Weapon.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Weapon.cs') diff --git a/Weapon.cs b/Weapon.cs index 194f907..7957749 100644 --- a/Weapon.cs +++ b/Weapon.cs @@ -3,7 +3,8 @@ using Godot; public partial class Weapon : Node2D { [Export] public PackedScene BulletScene { get; set; } - + [Export] public bool PierceEntity { get; set; } = false; + [Export] public bool PierceTerrain { get; set; } = false; // Future-proofing: Different weapons can have different damage multipliers! [Export] public float DamageMultiplier { get; set; } = 1.0f; public override void _Process(double delta) @@ -32,6 +33,8 @@ public partial class Weapon : Node2D bullet.GlobalPosition = GlobalPosition; // Spawns right where the weapon node is! bullet.Direction = Vector2.Right.Rotated(GlobalRotation); bullet.Damage = finalDamage; + bullet.PierceEntity = PierceEntity; + bullet.PierceTerrain = PierceTerrain; // 4. Add it to the world GetTree().Root.AddChild(bullet); -- cgit v1.2.3