Teleport enemy to random room item

This commit is contained in:
2025-03-02 11:55:19 -08:00
parent 2439791d05
commit 05295f535a
20 changed files with 166 additions and 59 deletions

View File

@@ -5,6 +5,7 @@ using Chickensoft.AutoInject;
using Chickensoft.Introspection;
using Godot;
using System;
using System.Collections.Immutable;
[Meta(typeof(IAutoNode))]
public partial class Game : Node3D, IGame
@@ -179,6 +180,8 @@ public partial class Game : Node3D, IGame
InGameUI.PlayerInfoUI.DisplayMessage(message);
}
public IDungeonFloor CurrentFloor => Map.CurrentFloor;
private void OnEnemyDefeated(Vector3 vector, EnemyStatResource resource)
{
Player.GainExp(resource.ExpFromDefeat * GameRepo.EXPRate);

View File

@@ -11,6 +11,8 @@ public interface IGame : IProvide<IGameRepo>, IProvide<IGameEventDepot>, IProvid
public RescuedItemDatabase RescuedItems { get; }
public IDungeonFloor CurrentFloor { get; }
public void DropItem(IInventoryItem item);
public void ThrowItem(IInventoryItem item);