mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 05:45:53 +00:00
Added Laser tutorial
This commit is contained in:
parent
69487be389
commit
a015254f9a
14 changed files with 144 additions and 16 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue