forked from Elfocrash/L2dotNET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathItemEffect.cs
More file actions
28 lines (23 loc) · 725 Bytes
/
Copy pathItemEffect.cs
File metadata and controls
28 lines (23 loc) · 725 Bytes
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
26
27
28
using L2dotNET.Models.Player;
using NLog;
namespace L2dotNET.Models.Items
{
public class ItemEffect
{
private static readonly Logger Log = LogManager.GetCurrentClassLogger();
public int[] Ids;
public void Use(L2Character character, L2Item item)
{
if (character is L2Player)
UsePlayer((L2Player)character, item);
else
{
Log.Warn($"Unk object {character.Name} tried to use {item.Template.ItemId}");
}
}
public virtual void UsePlayer(L2Player player, L2Item item)
{
player.SendMessageAsync("You cannot use this item.");
}
}
}