Knockback tag implementation

This commit is contained in:
2024-09-18 16:45:00 -07:00
parent 884f283ead
commit d5c81d6587
11 changed files with 34 additions and 51 deletions

View File

@@ -34,7 +34,7 @@ public partial class ThrowableItem : Node3D, IInventoryItem
public void Throw(ThrowableItemStats throwableItemStats)
{
var throwableScene = GD.Load<PackedScene>("res://src/items/throwable/ThrownItem.tscn");
var throwableScene = GD.Load<PackedScene>("res://src/items/thrown/ThrownGeometricDice.tscn");
var throwable = throwableScene.Instantiate<ThrownItem>();
Game.AddChild(throwable);
throwable.Throw(throwableItemStats);