@@ -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 MagicOnNPCActionHook extends ActionHook < MagicOnNPCAction , magiconnpcActionHandler > {
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 magiconnpcActionHandler = ( buttonAction : MagicOnNPCAction ) => 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 MagicOnNPCAction {
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.
@@ -48,11 +48,11 @@ export interface Magic_On_NPCAction {
48
48
* @param widgetId
49
49
* @param buttonId
50
50
*/
51
- const buttonActionPipe = ( npc :Npc , player : Player , widgetId : number , buttonId : number ) : RunnableHooks < Magic_On_NPCAction > => {
51
+ const buttonActionPipe = ( npc :Npc , player : Player , widgetId : number , buttonId : number ) : RunnableHooks < MagicOnNPCAction > => {
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
- const matchingHooks = getActionHooks < Magic_On_NPCActionHook > ( 'magic_on_npc' ) ;
55
+ const matchingHooks = getActionHooks < MagicOnNPCActionHook > ( 'magic_on_npc' ) ;
56
56
57
57
58
58
return {
0 commit comments