Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions js/data/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,91 @@
SharkGame.flags.gotFarmsBeforeShrimpThreat = true;
}
},
},
chaoticEchoShiftShark: {

Check failure on line 297 in js/data/events.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 4 spaces but found 1 tab

Check failure on line 297 in js/data/events.js

View workflow job for this annotation

GitHub Actions / build

Unexpected tab character
handlingTime: "beforeTick",
priority: 0,
getAction() {
return "remove";
},
trigger() {
const crystal = res.getResource("crystal");

Check failure on line 304 in js/data/events.js

View workflow job for this annotation

GitHub Actions / build

'crystal' is assigned a value but never used. Allowed unused vars must match /^__.+$/u
const wisp = res.getResource("wisp");

Check failure on line 305 in js/data/events.js

View workflow job for this annotation

GitHub Actions / build

'wisp' is assigned a value but never used. Allowed unused vars must match /^__.+$/u

Check failure on line 305 in js/data/events.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 12 spaces but found 3 tabs

Check failure on line 305 in js/data/events.js

View workflow job for this annotation

GitHub Actions / build

Unexpected tab character
const coral = res.getResource("coral");

Check failure on line 306 in js/data/events.js

View workflow job for this annotation

GitHub Actions / build

'coral' is assigned a value but never used. Allowed unused vars must match /^__.+$/u

Check failure on line 306 in js/data/events.js

View workflow job for this annotation

GitHub Actions / build

Expected indentation of 12 spaces but found 3 tabs

Check failure on line 306 in js/data/events.js

View workflow job for this annotation

GitHub Actions / build

Unexpected tab character
const sand = res.getResource("sand");

Check failure on line 307 in js/data/events.js

View workflow job for this annotation

GitHub Actions / build

Unexpected tab character

const echo = SharkGame.ResourceMap.get("echo");

SharkGame.flags.echoShiftShark = true;
SharkGame.flags.echoShiftRay = false;
SharkGame.flags.echoShiftCrab = false;

echo.baseIncome = { wisp: 10, sand: 0, crystal: 0, coral: 0 };

res.reapplyModifiers("echo", "wisp");
res.reapplyModifiers("echo", "sand");
res.reapplyModifiers("echo", "crystal");
res.reapplyModifiers("echo", "coral");

return true;
},
},
chaoticEchoShiftRay: {
handlingTime: "beforeTick",
priority: 0,
getAction() {
return "remove";
},
trigger() {
const crystal = res.getResource("crystal");
const wisp = res.getResource("wisp");
const coral = res.getResource("coral");
const sand = res.getResource("sand");

const echo = SharkGame.ResourceMap.get("echo");

SharkGame.flags.echoShiftShark = false;
SharkGame.flags.echoShiftRay = true;
SharkGame.flags.echoShiftCrab = false;

echo.baseIncome = { wisp: 2, sand: 10, crystal: 0, coral: 0 };

res.reapplyModifiers("echo", "wisp");
res.reapplyModifiers("echo", "sand");
res.reapplyModifiers("echo", "crystal");
res.reapplyModifiers("echo", "coral");

return true;
},
},
chaoticEchoShiftCrab: {
handlingTime: "beforeTick",
priority: 0,
getAction() {
return "remove";
},
trigger() {
const crystal = res.getResource("crystal");
const wisp = res.getResource("wisp");
const coral = res.getResource("coral");
const sand = res.getResource("sand");

const echo = SharkGame.ResourceMap.get("echo");


SharkGame.flags.echoShiftShark = false;
SharkGame.flags.echoShiftRay = false;
SharkGame.flags.echoShiftCrab = true;

echo.baseIncome = { wisp: 0, sand: 0, crystal: 2, coral: 1 };

res.reapplyModifiers("echo", "wisp");
res.reapplyModifiers("echo", "sand");
res.reapplyModifiers("echo", "crystal");
res.reapplyModifiers("echo", "coral");

return true;
},
},
revealBuyButtons: {
handlingTime: "beforeTick",
Expand Down
Loading