mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-11 13: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
|
|
@ -36,6 +36,10 @@ public partial class LevelTeleporter : Teleporter
|
|||
// Save inventory
|
||||
GlobalState.Instance.SessionSettings.Items = InventoryManager.Instance.Save();
|
||||
}
|
||||
else
|
||||
{
|
||||
GlobalState.Instance.SessionSettings.EquippedWeaponId = string.Empty;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(LevelPath))
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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