Make key items (flower and key staff)

Implement fog door for unlockable doors
This commit is contained in:
2026-06-16 00:01:49 -07:00
parent 3e1ad0d0cb
commit d4a27f6d4d
37 changed files with 640 additions and 394 deletions
@@ -201,4 +201,24 @@ public class RevivePlayerAugment : IAugmentType
else
_player.AutoRevive = false;
}
}
public class KeyStaffAugment : IAugmentType
{
private readonly IPlayer _player;
public KeyStaffAugment(IPlayer player)
{
_player = player;
}
public void Apply()
{
_player.CanOpenDoors = true;
}
public void Remove()
{
_player.CanOpenDoors &= false;
}
}
@@ -17,5 +17,6 @@ public enum JewelTags
ReviveUserOnce,
TelluricElement,
IncreaseAtkDefLuck,
IncreaseLuck
IncreaseLuck,
KeyStaff
}
@@ -78,6 +78,8 @@ public interface IPlayer : IKillable, ICharacterBody3D
public bool BriefImmunity { get; set; }
public bool CanOpenDoors { get; set; }
public event Action PlayerDied;
public delegate IBaseInventoryItem RerollItem(IBaseInventoryItem item);
}