Skip to content

Commit a5c9798

Browse files
committed
Add trigger s upport for shiftop and onclick variants
1 parent 747e298 commit a5c9798

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
- Local/system settings to manage launcher JRE and Neptune home.
1111
- Icons for script declarations.
1212
- Support for varclan and varclansetting.
13+
- Trigger support for shiftop and onclick variants.
1314

1415
### Changed
1516

src/main/kotlin/io/runescript/plugin/lang/psi/type/trigger/RsTriggerType.kt

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,17 +36,23 @@ enum class RsTriggerType(
3636
),
3737
LOADNPC("loadnpc", subjectType = NPC),
3838
LOADLOC("loadloc", subjectType = LOC),
39-
TRIGGER_45("trigger_45"),
39+
UPDATEOBJSTACK("updateobjstack"),
40+
UPDATEOBJCOUNT("updateobjcount", subjectType = NAMEDOBJ),
4041
TRIGGER_47("trigger_47"),
4142
TRIGGER_48("trigger_48"),
4243
TRIGGER_49("trigger_49"),
4344
CLIENTSCRIPT("clientscript", allowParameters = true),
4445
PROC("proc", allowParameters = true, allowReturns = true),
45-
TRIGGER78("trigger_78"),
46-
TRIGGER79("trigger_79"),
47-
TRIGGER80("trigger_80"),
48-
TRIGGER81("trigger_81"),
46+
ONCLICKLOC("onclickloc"),
47+
ONCLICKOBJ("onclickobj"),
48+
ONCLICKNPC("onclicknpc"),
49+
ONCLICKPLAYER("onclickplayer"),
4950
TRIGGER82("trigger_82"),
51+
SHIFTOPNPC("shiftopnpc"),
52+
SHIFTOPLOC("shiftoploc"),
53+
SHIFTOPOBJ("shiftopobj"),
54+
SHIFTOPPLAYER("shiftopplayer"),
55+
SHIFTOPTILE("shiftoptile"),
5056
;
5157

5258
companion object {

0 commit comments

Comments
 (0)