mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-01 10:35:34 +00:00
Mapping
This commit is contained in:
parent
674f79f079
commit
8ec057faf7
5 changed files with 17 additions and 25 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using Cirno.Scripts.Controllers;
|
||||
using System.Linq;
|
||||
using Cirno.Scripts.Controllers;
|
||||
|
||||
namespace Cirno.Scripts.Interactables;
|
||||
|
||||
|
|
@ -15,7 +16,11 @@ public partial class RogueliteDoorLock : Switch
|
|||
Connection.FromDoor.Activate(activationType);
|
||||
Connection.ToDoor.Activate(activationType);
|
||||
|
||||
InventoryManager.Instance.RemoveItem("GRAY_KEY", 1);
|
||||
foreach (var requirement in Requirements)
|
||||
{
|
||||
InventoryManager.Instance.RemoveItem(requirement.ItemKey, 1);
|
||||
}
|
||||
|
||||
|
||||
this.QueueFree();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue