Skip to content

Commit fbc15b8

Browse files
committed
Separate small and large oil rig notification settings
1 parent a9d885a commit fbc15b8

File tree

4 files changed

+25
-11
lines changed

4 files changed

+25
-11
lines changed

docs/full_list_features.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
> Receive notifications for In-Game Events such as:
8686
- **Cargo Ship** - When it spawns, despawns, how long before it enters egress stage. How long time since it was last out. step-trace.
8787
- **Patrol Helicopter** - When it spawns, despawns or gets taken down. How long time since it was last out and how long since it was taken down. step-trace.
88-
- **Oil Rig** - When Oil Rig calls in Heavy Scientists and how long till the Locked Crate unlocks.
88+
- **Oil Rigs** - When Heavy Scientists are called at each, and how long until the Locked Crates unlock.
8989
- **Chinook 47** - When it enters map and when it leaves.
9090
- **Vending Machines** - Whenever a new Vending Machine appears on the map.
9191

src/languages/en.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,10 @@
387387
"hbhfSensor": "HBHF Sensor",
388388
"heart": "Heart",
389389
"heater": "Heater",
390-
"heavyScientistCalledSetting": "When Heavy Scientists are called to Oil Rig, send a notification.",
391390
"heavyScientistsCalledLarge": "Heavy Scientists got called to the Large Oil Rig at {location}.",
391+
"heavyScientistsCalledLargeSetting": "When Heavy Scientists are called to the Large Oil Rig, send a notification.",
392392
"heavyScientistsCalledSmall": "Heavy Scientists got called to the Small Oil Rig at {location}.",
393+
"heavyScientistsCalledSmallSetting": "When Heavy Scientists are called to the Small Oil Rig, send a notification.",
393394
"hideTrademark": "Hide trademark.",
394395
"hoster": "Hoster",
395396
"hp": "HP",
@@ -444,8 +445,9 @@
444445
"linkCap": "LINK",
445446
"location": "Location",
446447
"lockedCrateLargeOilRigUnlocked": "Locked Crate at Large Oil Rig at {location} has been unlocked.",
447-
"lockedCrateOilRigUnlockedSetting": "When a Locked Crate at Oil Rig is unlocked, send a notification.",
448+
"lockedCrateLargeOilRigUnlockedSetting": "When a Locked Crate at Large Oil Rig is unlocked, send a notification.",
448449
"lockedCrateSmallOilRigUnlocked": "Locked Crate at Small Oil Rig at {location} has been unlocked.",
450+
"lockedCrateSmallOilRigUnlockedSetting": "When a Locked Crate at Small Oil Rig is unlocked, send a notification.",
449451
"logDiscordCommand": "Discord Command - Guild: {guild}, Channel: {channel}, User: {user}, Message: {message}.",
450452
"logDiscordMessage": "Discord Message - Guild: {guild}, Channel: {channel}, User: {user}, Message: {message}.",
451453
"logInGameCommand": "{type} - Command: {command}, User: {user}.",

src/structures/MapMarkers.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ class MapMarkers {
362362
marker.ch47Type = 'smallOilRig';
363363

364364
this.rustplus.sendEvent(
365-
this.rustplus.notificationSettings.heavyScientistCalledSetting,
365+
this.rustplus.notificationSettings.heavyScientistsCalledSmallSetting,
366366
this.client.intlGet(this.rustplus.guildId, 'heavyScientistsCalledSmall',
367367
{ location: oilRigLocation.location }),
368368
'small',
@@ -397,7 +397,7 @@ class MapMarkers {
397397
marker.ch47Type = 'largeOilRig';
398398

399399
this.rustplus.sendEvent(
400-
this.rustplus.notificationSettings.heavyScientistCalledSetting,
400+
this.rustplus.notificationSettings.heavyScientistsCalledLargeSetting,
401401
this.client.intlGet(this.rustplus.guildId, 'heavyScientistsCalledLarge',
402402
{ location: oilRigLocation.location }),
403403
'large',
@@ -688,7 +688,7 @@ class MapMarkers {
688688
let oilRigLocation = args[0];
689689

690690
this.rustplus.sendEvent(
691-
this.rustplus.notificationSettings.lockedCrateOilRigUnlockedSetting,
691+
this.rustplus.notificationSettings.lockedCrateSmallOilRigUnlockedSetting,
692692
this.client.intlGet(this.rustplus.guildId, 'lockedCrateSmallOilRigUnlocked', {
693693
location: oilRigLocation
694694
}),
@@ -706,7 +706,7 @@ class MapMarkers {
706706
let oilRigLocation = args[0];
707707

708708
this.rustplus.sendEvent(
709-
this.rustplus.notificationSettings.lockedCrateOilRigUnlockedSetting,
709+
this.rustplus.notificationSettings.lockedCrateLargeOilRigUnlockedSetting,
710710
this.client.intlGet(this.rustplus.guildId, 'lockedCrateLargeOilRigUnlocked', {
711711
location: oilRigLocation
712712
}),

src/templates/notificationSettingsTemplate.json

+16-4
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,26 @@
3535
"inGame": false,
3636
"voice": true
3737
},
38-
"lockedCrateOilRigUnlockedSetting": {
39-
"image": "locked_crate_logo.png",
38+
"heavyScientistsCalledSmallSetting": {
39+
"image": "small_oil_rig_logo.png",
4040
"discord": true,
4141
"inGame": false,
4242
"voice": true
4343
},
44-
"heavyScientistCalledSetting": {
45-
"image": "oil_rig_logo.png",
44+
"lockedCrateSmallOilRigUnlockedSetting": {
45+
"image": "locked_crate_small_oil_rig_logo.png",
46+
"discord": true,
47+
"inGame": false,
48+
"voice": true
49+
},
50+
"heavyScientistsCalledLargeSetting": {
51+
"image": "large_oil_rig_logo.png",
52+
"discord": true,
53+
"inGame": false,
54+
"voice": true
55+
},
56+
"lockedCrateLargeOilRigUnlockedSetting": {
57+
"image": "locked_crate_large_oil_rig_logo.png",
4658
"discord": true,
4759
"inGame": false,
4860
"voice": true

0 commit comments

Comments
 (0)