Repository navigation
New Aspects and Other #53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ThreeEelsinaJellyfishCoat
wants to merge
29
commits into
Toby222:dev
Choose a base branch
from
ThreeEelsinaJellyfishCoat:aspects
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+569
−37
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
41b75cf
-added new aspects
ThreeEelsinaJellyfishCoat d6e07b2
-added aspect sacrifices
ThreeEelsinaJellyfishCoat d301796
-added new modifier for aspects
ThreeEelsinaJellyfishCoat 00549d0
-added aspect sacrifices to the existence field and updated template
ThreeEelsinaJellyfishCoat 1412560
-fixed indentation mistakes
ThreeEelsinaJellyfishCoat 97f29bd
-added new gateway messages
ThreeEelsinaJellyfishCoat 188df42
-added changelog entry
ThreeEelsinaJellyfishCoat 1ea36c3
-fixed tpyos in seaApplesToScience and seagrassToScience
ThreeEelsinaJellyfishCoat a27ebd4
-added new aspect
ThreeEelsinaJellyfishCoat 8f48ab8
-added a new tab name
ThreeEelsinaJellyfishCoat 1f1489e
-added my name to the contributors!
ThreeEelsinaJellyfishCoat 825804c
-rewrote changelog entry for next update
ThreeEelsinaJellyfishCoat 2b52049
-fixed tpyo and added two off messages
ThreeEelsinaJellyfishCoat 090055b
-added shore planet and mudskipper homeaction spritesheet locations
ThreeEelsinaJellyfishCoat b120bcb
-delete spritesheet
ThreeEelsinaJellyfishCoat 97e32ed
-added new spritesheet
ThreeEelsinaJellyfishCoat 190a1db
-I FORGOT TO ADD THE SHORE LOCATION
ThreeEelsinaJellyfishCoat 1147835
-added new aspect
ThreeEelsinaJellyfishCoat bdb0f75
-added beast and bloom fields to dissections
ThreeEelsinaJellyfishCoat f8b45d4
-added beast and bloom field to haven's seaApplesToScience
ThreeEelsinaJellyfishCoat fa2829f
-added beast and bloom field to seagrassToScience
ThreeEelsinaJellyfishCoat 21aa07a
-added more stuff to the changelog entry
ThreeEelsinaJellyfishCoat 616c777
-removed deprecated dancing leaves modifier
ThreeEelsinaJellyfishCoat 7776f04
Update resourcetable.js
ThreeEelsinaJellyfishCoat 7abc74a
-toby
ThreeEelsinaJellyfishCoat 8baf31b
-toby
ThreeEelsinaJellyfishCoat 8815ffe
-toby
ThreeEelsinaJellyfishCoat 72a0198
-toby
ThreeEelsinaJellyfishCoat a2080b1
-toby
ThreeEelsinaJellyfishCoat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -231,6 +231,108 @@ SharkGame.Aspects = { | |
| tree.handleClickedAspect(this); | ||
| }, | ||
| }, | ||
| pathOfLoyalty: { // old name concept: pathOfResearch | ||
| posX: 450, | ||
| posY: 450, | ||
| width: 40, | ||
| height: 40, | ||
|
|
||
| max: 10, | ||
| level: 0, | ||
| name: "Path of Loyalty", | ||
| description: "Good leadership attracts lasting effects, and undying loyalty.", | ||
| // old desc concept: "Knowledge leads to curiosity, and curiosity leads to progress, and progress leads to ascension." | ||
| getCost(level) { | ||
| return 3 * level + 2; | ||
| }, | ||
| getEffect(level) { | ||
| return ( | ||
| "Multiply the income of " + | ||
| sharktext.getResourceName("sand", false, 69, sharkcolor.getElementColor("tooltipbox", "background-color")) + | ||
| " by <strong>" + | ||
| (level + 1) + | ||
| "×</strong>." | ||
| ); | ||
| }, | ||
| getUnlocked() { | ||
| if (!SharkGame.Aspects.pathOfEnlightenment.level) { | ||
| return "???"; | ||
| } | ||
| if (gateway.completedWorlds.length < 3) { | ||
| return "Scout at least two worlds to unlock this aspect."; | ||
| } | ||
| }, | ||
| prerequisites: ["apotheosis"], | ||
| clicked(_event) { | ||
| tree.handleClickedAspect(this); | ||
| }, | ||
| apply(when) { | ||
| if (when === "init") { | ||
| res.applyModifier("aspectResourceIncomeBoost", "sand", this.level + 1); | ||
| } | ||
| }, | ||
| }, | ||
| arcaneAssistance: { | ||
| posX: 500, | ||
| posY: 550, | ||
| width: 40, | ||
| height: 40, | ||
|
|
||
| max: 10, | ||
| level: 0, | ||
| name: "Arcane Assistance", | ||
| description: "Curiosity yields risk, but is the seed of lasting progress.", | ||
| getCost(level) { | ||
| return 3 * level + 2; | ||
| }, | ||
| getEffect(level) { | ||
| return ( | ||
| "Start with <strong>" + | ||
| 1 * 2 ** level + | ||
| "</strong> " + | ||
| sharktext.getResourceName("sacrifice", false, 69, sharkcolor.getElementColor("tooltipbox", "background-color")) + | ||
| ". Each world will receive different resource boosts." | ||
| ); | ||
| }, | ||
| getUnlocked() { | ||
| return gateway.completedWorlds.includes("shrouded") ? "" : "Complete the Shrouded worldtype to unlock this aspect."; | ||
| }, | ||
| prerequisites: ["pathOfLoyalty"], | ||
| clicked(_event) { | ||
| tree.handleClickedAspect(this); | ||
| }, | ||
| apply(when) { | ||
| if (when === "init" && res.getResource("kelpAspectSacrifice") === 0 && !SharkGame.flags.arcaneAssistanceApplied) { | ||
| const base = 1 * 2 ** this.level; | ||
| switch (world.worldType) { | ||
| case "shrouded": | ||
| res.changeResource("jellyAspectSacrifice", base); | ||
| break; | ||
| case "haven": | ||
| res.changeResource("coralAspectSacrifice", base); | ||
| break; | ||
| case "volcanic": | ||
| res.changeResource("volcanicAspectSacrifice", base); | ||
| break; | ||
| case "tempestuous": | ||
| res.changeResource("seagrassAspectSacrifice", base); | ||
| break; | ||
| case "marine": | ||
| res.changeResource("clamAspectSacrifice", base); | ||
| break; | ||
| case "abandoned": | ||
| res.changeResource("spongeAspectSacrifice", base); | ||
| break; | ||
| case "shore": | ||
| res.changeResource("seagrassAspectSacrifice", base); | ||
| break; | ||
| default: | ||
| res.changeResource("kelpAspectSacrifice", base); | ||
| } | ||
| SharkGame.flags.arcaneAssistanceApplied = true; | ||
| } | ||
| }, | ||
| }, | ||
| pathOfTime: { | ||
| posX: 450, | ||
| posY: 250, | ||
|
|
@@ -841,6 +943,166 @@ SharkGame.Aspects = { | |
| tree.handleClickedAspect(this); | ||
| }, | ||
| }, | ||
| dancingLeaves: { | ||
| posX: 330, | ||
| posY: 440, | ||
| width: 40, | ||
| height: 40, | ||
|
|
||
| max: 10, | ||
| level: 0, | ||
| name: "Dancing Leaves", | ||
| description: "Faceless. Mindless. Boundless.", | ||
| getCost(level) { | ||
| return 3 * level + 2; | ||
| }, | ||
| getEffect(level) { | ||
| return ( | ||
| "Multiply the income of " + | ||
| sharktext.getResourceName("kelp", false, 69, sharkcolor.getElementColor("tooltipbox", "background-color")) + | ||
| " or " + | ||
| sharktext.getResourceName("seagrass", false, 69, sharkcolor.getElementColor("tooltipbox", "background-color")) + | ||
| " by <strong>" + | ||
| (level + 1) + | ||
| "×</strong>." | ||
| ); | ||
| }, | ||
| getUnlocked() {}, | ||
| prerequisites: ["apotheosis"], | ||
| clicked(_event) { | ||
| tree.handleClickedAspect(this); | ||
| }, | ||
| apply(when) { | ||
| if (when === "init") { | ||
| res.applyModifier("aspectResourceIncomeBoost", "kelp", this.level + 1); | ||
| res.applyModifier("aspectResourceIncomeBoost", "seagrass", this.level + 1); | ||
| } | ||
| }, | ||
| }, | ||
| beastAndBloom: { | ||
| posX: 315, | ||
| posY: 500, | ||
| width: 40, | ||
| height: 40, | ||
|
|
||
| max: 4, | ||
| level: 0, | ||
| name: "Beast and Bloom", | ||
| description: "There's a lot to learn from simplicity.", | ||
| core: true, | ||
| getCost(level) { | ||
| return 2 * level + 3; | ||
| }, | ||
| getEffect(level) { | ||
| return ( | ||
| "Gain <strong>" + | ||
| (level + 1) + | ||
| "x</strong> more " + | ||
| sharktext.getResourceName("science", false, 69, sharkcolor.getElementColor("tooltipbox", "background-color")) + | ||
| " from dissections." | ||
| ); | ||
| }, | ||
| getUnlocked() {}, | ||
| prerequisites: ["dancingLeaves"], | ||
| clicked(_event) { | ||
| tree.handleClickedAspect(this); | ||
| }, | ||
| }, | ||
| nativeKnowledge: { | ||
| posX: 444, | ||
| posY: 595, | ||
| width: 40, | ||
| height: 40, | ||
|
|
||
| max: 10, | ||
| level: 0, | ||
| name: "Native Knowledge", | ||
| description: "Those in their element are the best to learn from.", | ||
| getCost(level) { | ||
| return 2 * level + 2; | ||
| }, | ||
| getEffect(level) { | ||
| return ( | ||
| "Multiply the efficiency of a world's unique frenzy members by <strong>" + | ||
| (level + 1) + | ||
| "×</strong>." | ||
| ); | ||
| }, | ||
| getUnlocked() { | ||
| if (!SharkGame.Aspects.pathOfEnlightenment.level) { | ||
| return "???"; | ||
| } | ||
| if (gateway.completedWorlds.length < 3) { | ||
| return "Scout at least two worlds to unlock this aspect."; | ||
| } | ||
| }, | ||
| prerequisites: ["apotheosis"], | ||
| clicked(_event) { | ||
| tree.handleClickedAspect(this); | ||
| }, | ||
| apply(when) { | ||
| if (when === "init") { | ||
| res.applyModifier("pathOfIndustry", "octopus", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "squid", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "urchin", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "dolphin", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "whale", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "billfish", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "chimaera", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "eel", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "lobster", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "shrimp", this.level + 1); | ||
| // res.applyModifier("pathOfIndustry", "mudskipper", this.level + 1); | ||
| // res.applyModifier("pathOfIndustry", "caracara", this.level + 1); | ||
| } | ||
| }, | ||
| }, | ||
| buriedBlueprints: { | ||
| posX: 555, | ||
| posY: 676, | ||
| width: 40, | ||
| height: 40, | ||
|
|
||
| max: 10, | ||
| level: 0, | ||
| name: "Buried Blueprints", | ||
| description: "Every world has its secrets, waiting to be uncovered.", | ||
| getCost(level) { | ||
| return 2 * level + 2; | ||
| }, | ||
| getEffect(level) { | ||
| return ( | ||
| "Multiply the efficiency of a world's unique machines by <strong>" + | ||
| (level + 1) + | ||
| "×</strong>." | ||
| ); | ||
| }, | ||
| getUnlocked() {}, | ||
| prerequisites: ["nativeKnowledge"], | ||
| clicked(_event) { | ||
| tree.handleClickedAspect(this); | ||
| }, | ||
| apply(when) { | ||
| if (when === "init") { | ||
| res.applyModifier("pathOfIndustry", "heater", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "tirelessCrafter", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "kelpCultivator", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "crimsonCombine", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "clamCollector", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "sprongeSmelter", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "eggBrooder", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "seabedStripper", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "calciniumConverter", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "clamScavenger", this.level + 1); | ||
| // res.applyModifier("pathOfIndustry", "shoreQueller", this.level + 1); | ||
| // res.applyModifier("pathOfIndustry", "driftwoodSnarer", this.level + 1); | ||
| // res.applyModifier("pathOfIndustry", "hardbarkSmith", this.level + 1); | ||
|
Comment on lines
+1097
to
+1099
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove if unneeded
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See above. |
||
| res.applyModifier("pathOfIndustry", "shoveler", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "farmer", this.level + 1); | ||
| res.applyModifier("pathOfIndustry", "researcher", this.level + 1); | ||
| } | ||
| }, | ||
| }, | ||
|
|
||
| // deprecated | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove if unneeded
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those are there so that they can easily be put into action when Shore releases.