Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/game.js b/game.js
- index c40cb33..6e197ec 100644
- --- a/game.js
- +++ b/game.js
- @@ -3426,6 +3426,10 @@ dojo.declare("com.nuclearunicorn.game.ui.GamePage", null, {
- "paragon": paragonPoints
- };
- + if (this.challenges.currentChallenge == "blackSky") {
- + addRes["ship"] = 1
- + }
- +
- var karmaZebras = parseInt(this.karmaZebras); //hack
- //that's all folks
- diff --git a/js/calendar.js b/js/calendar.js
- index eeb003b..4eccbe5 100644
- --- a/js/calendar.js
- +++ b/js/calendar.js
- @@ -446,7 +446,12 @@ dojo.declare("com.nuclearunicorn.game.Calendar", null, {
- //------------------------- astronomical events -------------------------
- if (this.game.bld.get("library").on > 0) {
- var eventChance = (0.0025 + this.game.getEffect("starEventChance")) * chanceRatio;
- - if (this.game.prestige.getPerk("astromancy").researched) {
- +
- + if (this.game.challenges.currentChallenge == "blackSky") {
- + eventChance = 0
- + }
- +
- + if (this.game.prestige.getPerk("astromancy").researched) {
- eventChance *= 2;
- }
- diff --git a/js/challenges.js b/js/challenges.js
- index 2c66b92..22af14b 100644
- --- a/js/challenges.js
- +++ b/js/challenges.js
- @@ -31,6 +31,13 @@ dojo.declare("classes.managers.ChallengesManager", com.nuclearunicorn.core.TabMa
- researched: false,
- unlocked: true
- },{
- + name: "blackSky",
- + label: "Black Sky",
- + description: "Restart the game with no astronomical events to observe.<br/><br/>Goal: TBD",
- + effectDesc: "TBD",
- + researched: false,
- + unlocked: true
- + },{
- name: "energy",
- label: $I("challendge.energy.label"),
- description: $I("challendge.energy.desc"),
- @@ -106,8 +113,12 @@ dojo.declare("classes.managers.ChallengesManager", com.nuclearunicorn.core.TabMa
- if (this.game.bld.get("aiCore").val > 0){
- this.researchChallenge("anarchy");
- }
- + } else if (this.currentChallenge == "blackSky") {
- + if (this.game.space.getBuilding('spaceBeacon').val > 0){
- + this.researchChallenge("blackSky");
- + }
- + }
- - }
- // winterIsComing
- if (this.currentChallenge == "winterIsComing") {
- if (this.game.space.getPlanet("helios").reached){
- diff --git a/js/space.js b/js/space.js
- index cee2816..508fe82 100644
- --- a/js/space.js
- +++ b/js/space.js
- @@ -1152,6 +1152,13 @@ dojo.declare("com.nuclearunicorn.game.ui.SpaceProgramBtnController", com.nuclear
- var reductionRatio = this.game.getHyperbolicEffect(this.game.getEffect("oilReductionRatio"), 0.75);
- prices[i].val *= (1 - reductionRatio);
- }
- +
- + if (this.game.challenges.currentChallenge == "blackSky"
- + && model.metadata.name == "orbitalLaunch"
- + && prices[i].name == "starchart") {
- + prices[i].val = 0
- + }
- +
- }
- return prices;
- @@ -1232,6 +1239,13 @@ dojo.declare("classes.ui.space.PlanetBuildingBtnController", com.nuclearunicorn.
- var reductionRatio = this.game.getHyperbolicEffect(this.game.getEffect("oilReductionRatio"), 0.75);
- prices[i].val *= (1 - reductionRatio);
- }
- +
- + if (this.game.challenges.currentChallenge == "blackSky"
- + && meta.name == "sattelite"
- + && meta.val == 0
- + && prices[i].name == "starchart") {
- + prices[i].val = 0
- + }
- }
- return prices;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement