From 1bf04c9e68a9fb6e645d204d301b94fb2a028516 Mon Sep 17 00:00:00 2001 From: Richard Proctor Date: Sun, 11 May 2014 22:04:43 +0100 Subject: [PATCH] Dragon Save Nearly there! --- badges.js | 2 +- boosts.js | 83 ++++++++++++++++++++++++++++++++++++++------------- castle.js | 31 +++++++++++-------- dragons.js | 82 ++++++++++++++++++++++++++++++++++---------------- gui.js | 2 +- persist.js | 1 + redundancy.js | 3 +- 7 files changed, 143 insertions(+), 61 deletions(-) diff --git a/badges.js b/badges.js index 50a3a74b7..ebc52b4e9 100644 --- a/badges.js +++ b/badges.js @@ -750,7 +750,7 @@ Molpy.DefineBadges = function() { }); new Molpy.Badge({ name: 'Meaning', - desc: 'Reach a ' + Molpy.redactedWord + ' streak of 42' + desc: 'Reach a ' + Molpy.Redacted.Word + ' streak of 42' }); new Molpy.Badge({ name: 'How do I Shot Mustard?', diff --git a/boosts.js b/boosts.js index a67234df7..99e615e20 100644 --- a/boosts.js +++ b/boosts.js @@ -7704,6 +7704,8 @@ Molpy.DefineBoosts = function() { } } str += ''; + } else { + str += ' It can not have its lining changed while in use.'; } return str; }, @@ -7725,8 +7727,8 @@ Molpy.DefineBoosts = function() { var stat1 = 0; var stat2 = 0; for (var line in this.Liners) { - if (pair[0] == Molpy.NestLinings[line]) stat1 = this.Liners[line]; - if (pair[1] == Molpy.NestLinings[line]) stat2 = this.Liners[line]; + if (pair[0] == Molpy.NestLinings[line] && Molpy.Has(pair[0],Infinity)) stat1 = this.Liners[line]; + if (pair[1] == Molpy.NestLinings[line] && Molpy.Has(pair[1],Infinity)) stat2 = this.Liners[line]; } props[prop] = stat1*stat2/10000; } @@ -7804,7 +7806,8 @@ Molpy.DefineBoosts = function() { }, ChangeState: function(newstate, duration) { this.overallState = newstate; - this.countdown += (duration || 1); + if (newstate) this.countdown += (duration || 1) + else this.countdown = 0; }, clickBeach: function() { if (this.bought && Molpy.DragonDigRate && Molpy.Got('Beach Dragon')) { @@ -7813,7 +7816,7 @@ Molpy.DefineBoosts = function() { }, Loose: function(type,num) { - loses[type] = (loses[type]||0)+num; + this.loses[type] = (this.loses[type]||0)+num; this.totalloses += num; if (this.totalloses >= 20) Molpy.EarnBadge('What\'s the score?'); if (this.totalloses >= 144) Molpy.EarnBadge('That\'s gross'); @@ -9721,6 +9724,7 @@ Molpy.DefineBoosts = function() { icon: 'rdkm', desc: function (me) { var str = 'This has lots of useful information that will change as you do things...'; + var draglevel = Molpy.Level('DQ'); if (!me.bought) return str; str += '