blob: d26026397aa2c09d66e616ea3f3e2e372bbefd1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
using Godot;
using TheLegendOfGustav.Entities.Actions;
using TheLegendOfGustav.Entities.Actors;
using TheLegendOfGustav.Magic;
using TheLegendOfGustav.Map;
using TheLegendOfGustav.Utils;
namespace TheLegendOfGustav.Entities.Items;
public partial class ScrollConsumable(Vector2I initialPosition, MapData map, ScrollConsumableDefinition definition) : ConsumableItem(initialPosition, map, definition)
{
private ScrollConsumableDefinition definition = definition;
public SpellResource Spell { get; private set; } = definition.Spell;
public override bool Activate(ItemAction action)
{
Player consumer = action.Player;
MessageLogData.Instance.AddMessage("Foste cuckado");
ConsumedBy(consumer);
return true;
}
}
|