-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHoloLocket.cs
34 lines (31 loc) · 1002 Bytes
/
HoloLocket.cs
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
29
30
31
32
33
34
using System;
using XRL.UI;
namespace XRL.World.Parts
{
[Serializable]
public class KobhegeHoloLocket : IPart
{
public override bool WantEvent(int ID, int cascade)
{
return ID == GetInventoryActionsEvent.ID || ID == InventoryActionEvent.ID;
}
public override bool HandleEvent(GetInventoryActionsEvent E)
{
E.AddAction(
Name: "Activate",
Key: 'a',
Display: "{{W|a}}ctivate",
Command: "Activate"
);
return true;
}
public override bool HandleEvent(InventoryActionEvent E)
{
if (E.Command == "Activate")
{
Popup.Show("You press the recessed button on the bracelet and a small hologram of your late spouse appears in your hand. After a few moments you sigh and turn off the bracelet, but the feeling of loss lingers.");
}
return true;
}
}
}