@@ -8,7 +8,7 @@ import { Npc } from '../actor/npc/npc';
8
8
/**
9
9
* Defines a button action hook.
10
10
*/
11
- export interface Magic_on_NPCActionHook extends ActionHook < Magic_on_NPCAction , magic_on_npcActionHandler > {
11
+ export interface Magic_On_NPCActionHook extends ActionHook < Magic_On_NPCAction , magic_on_npcActionHandler > {
12
12
// The npc world id that was clicked on after choosing the spell
13
13
npcworldId ?: number ;
14
14
// The IDs of the UI widgets that the buttons are on.
@@ -23,13 +23,13 @@ export interface Magic_on_NPCActionHook extends ActionHook<Magic_on_NPCAction, m
23
23
/**
24
24
* The button action hook handler function to be called when the hook's conditions are met.
25
25
*/
26
- export type magic_on_npcActionHandler = ( buttonAction : Magic_on_NPCAction ) => void | Promise < void > ;
26
+ export type magic_on_npcActionHandler = ( buttonAction : Magic_On_NPCAction ) => void | Promise < void > ;
27
27
28
28
29
29
/**
30
30
* Details about a button action being performed.
31
31
*/
32
- export interface Magic_on_NPCAction {
32
+ export interface Magic_On_NPCAction {
33
33
// The npc world id that was clicked on after choosing the spell
34
34
npc : Npc ,
35
35
// The player performing the action.
@@ -52,7 +52,7 @@ const buttonActionPipe = (npc:Npc, player: Player, widgetId: number, buttonId: n
52
52
//console.info(`pew pew you use magic on ${npc.name}!`);
53
53
54
54
// Find all object action plugins that reference this location object
55
- let matchingHooks = getActionHooks < Magic_on_NPCActionHook > ( 'magic_on_npc' ) ;
55
+ let matchingHooks = getActionHooks < Magic_On_NPCActionHook > ( 'magic_on_npc' ) ;
56
56
57
57
58
58
return {
0 commit comments