Use Special Room script type to mark rooms that don't have monster/item/player spawns
Fix some minimap display issues Fix michael animation state
This commit is contained in:
@@ -18,15 +18,15 @@ public partial class ExitRoom : DungeonRoom
|
||||
|
||||
public override void _Ready()
|
||||
{
|
||||
_exit.AreaEntered += Exit_AreaEntered;
|
||||
_exit.AreaEntered += Exit_AreaEntered;
|
||||
}
|
||||
|
||||
public void ExitReached()
|
||||
=> Game.FloorExitReached();
|
||||
=> Game.FloorExitReached();
|
||||
|
||||
private void Exit_AreaEntered(Area3D area)
|
||||
{
|
||||
if (area.GetOwner() is IPlayer)
|
||||
ExitReached();
|
||||
if (area.GetOwner() is IPlayer)
|
||||
ExitReached();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
using Chickensoft.AutoInject;
|
||||
using Chickensoft.Introspection;
|
||||
using Godot;
|
||||
|
||||
namespace Zennysoft.Game.Ma;
|
||||
[Meta(typeof(IAutoNode))]
|
||||
public partial class MinimapManager : Area3D
|
||||
{
|
||||
public override void _Notification(int what) => this.Notify(what);
|
||||
|
||||
[Node] public MeshInstance3D Minimap { get; set; } = default!;
|
||||
|
||||
public void OnResolved() => BodyEntered += MinimapManager_BodyEntered;
|
||||
|
||||
private void MinimapManager_BodyEntered(Node3D area) => Minimap.Show();
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
uid://c6s8hvdj3u3aq
|
||||
Reference in New Issue
Block a user