File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed
plugins/skills/firemaking Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -136,4 +136,3 @@ The following areas will make interesting use of the task system and would serve
136
136
137
137
- Health regen
138
138
- NPC movement
139
- - Firemaking
Original file line number Diff line number Diff line change 1
- import { itemOnItemActionHandler } from '@engine/action' ;
1
+ import { itemOnItemActionHandler , ItemOnItemActionHook , ItemOnWorldItemActionHook } from '@engine/action' ;
2
2
import { itemIds } from '@engine/world/config' ;
3
3
import { FIREMAKING_LOGS } from './data' ;
4
4
import { canChain } from './chance' ;
@@ -44,6 +44,13 @@ export default {
44
44
type : 'item_on_item' ,
45
45
items : FIREMAKING_LOGS . map ( log => ( { item1 : itemIds . tinderbox , item2 : log . logItem . gameId } ) ) ,
46
46
handler : action
47
- }
47
+ } as ItemOnItemActionHook ,
48
+ {
49
+ type : 'item_on_world_item' ,
50
+ items : FIREMAKING_LOGS . map ( log => ( { item : itemIds . tinderbox , worldItem : log . logItem . gameId } ) ) ,
51
+ handler : ( { player, usedWithItem } ) => {
52
+ runFiremakingTask ( player , usedWithItem ) ;
53
+ }
54
+ } as ItemOnWorldItemActionHook
48
55
]
49
56
} ;
You can’t perform that action at this time.
0 commit comments