Added Laser tutorial

This commit is contained in:
Marco 2025-05-02 16:20:54 +02:00
commit a015254f9a
14 changed files with 144 additions and 16 deletions

View file

@ -139,6 +139,12 @@ public partial class PlayerWeaponProvider : Node2D
// Remastered method
private Weapon SpawnWeapon(LootItem startingItem)
{
if (startingItem is null)
{
GD.Print($"Could not spawn weapon {startingItem.ItemKey} was not in the inventory.");
return null;
}
if (WeaponTemplate == null)
{
GD.Print("Could not spawn weapon because template is null");