Skip to content
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

Add calculators to edenic structures in wiki #1295

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion src/edenic.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,6 @@ const edenicModules = {
return `<div>${loc('eden_rune_gate_title')}</div>`;
}
},
wiki: false,
reqs: { elysium: 1 },
condition(){
return global.eden.rune_gate.count < 100 ? true : false;
Expand Down Expand Up @@ -589,6 +588,7 @@ const edenicModules = {
desc(){
return `<div>${loc('eden_rune_gate_title')}</div>`;
},
wiki: false,
reqs: { elysium: 1 },
condition(){
return global.eden.rune_gate.count === 100 ? true : false;
Expand Down
11 changes: 10 additions & 1 deletion src/wiki/structures.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ const calcInfo = {
'home_mission','dismantle','excavate','alien_outpost','red_mission','matrix','roid_mission','alien_station_survey',
'contact','introduce','subjugate','gas_contest','gas_contest2','ignite_gas_giant','jeff','goe_facility'
],
eden: ['survery_meadows','rune_gate_open','survey_fields','fortress','siege_fortress','raid_supplies','ambush_patrol','ruined_fortress','scout_elysium','reincarnation','west_tower','isle_garrison','east_tower','soul_compactor','scout_palace','throne']
},
excludeCreep: { // Things that aren't one-offs, but also don't have conventional cost creep.
planetary: ['horseshoe'],
Expand Down Expand Up @@ -174,7 +175,10 @@ const calcInfo = {
sphinx: !global.tech['hell_spire'] || global.tech.hell_spire < 7 ? 0 : global.tech.hell_spire === 7 ? 1 : 2,
waygate: global.tech['waygate'] && global.tech.waygate >= 2 ? 10 : global.portal['waygate'] ? global.portal.waygate.count : 0
},
tauceti: {}
tauceti: {},
eden: {
rune_gate: global.eden.hasOwnProperty('rune_gate') ? global.eden.rune_gate.count : 0
}
},
creepCalc: { // Because the cost creep is reverse engineered, buildings with very low cost creep can calculation discrepencies by using the base offset of 100. Here you set higher amounts for those specific buildings to use with the calculation to get a more accurate result.
planetary: {
Expand All @@ -183,6 +187,11 @@ const calcInfo = {
space: {
assembly: 1000,
swarm_satellite: 200
},
eden: {
spirit_vacuum: 2000,
research_station: 2000,
asphodel_harvester: 2000
}
}
};
Expand Down