mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 16:21:53 +08:00
Merge branch 'master' into jshint-compliance
This commit is contained in:
@@ -68,7 +68,7 @@ Events.Outside = [
|
||||
{ /* Hut fire */
|
||||
title: _('Fire'),
|
||||
isAvailable: function() {
|
||||
return Engine.activeModule == Outside && $SM.get('game.buildings["hut"]', true) > 0 && $SM.get('game.population', true) > 5;
|
||||
return Engine.activeModule == Outside && $SM.get('game.buildings["hut"]', true) > 0 && $SM.get('game.population', true) > 50;
|
||||
},
|
||||
scenes: {
|
||||
'start': {
|
||||
|
||||
+5
-3
@@ -175,11 +175,13 @@ var Path = {
|
||||
for(var k in carryable) {
|
||||
var lk = _(k);
|
||||
var store = carryable[k];
|
||||
var have = $SM.get('stores["'+k+'"]', true);
|
||||
var have = $SM.get('stores["'+k+'"]');
|
||||
var num = Path.outfit[k];
|
||||
num = typeof num == 'number' ? num : 0;
|
||||
if (have < num) { num = have; }
|
||||
$SM.set('outfit["'+k+'"]', num, true);
|
||||
if (have !== undefined) {
|
||||
if (have < num) { num = have; }
|
||||
$SM.set(k, num, true);
|
||||
}
|
||||
|
||||
var row = $('div#outfit_row_' + k.replace(' ', '-'), outfit);
|
||||
if((store.type == 'tool' || store.type == 'weapon') && have > 0) {
|
||||
|
||||
+6
-3
@@ -893,7 +893,8 @@ var Room = {
|
||||
$('div.storeRow', stores).each(function(index, el) {
|
||||
el = $(el);
|
||||
$('div.tooltip', el).remove();
|
||||
var tt = $('<div>').addClass('tooltip bottom right');
|
||||
var ttPos = index > 10 ? 'top right' : 'bottom right';
|
||||
var tt = $('<div>').addClass('tooltip ' + ttPos);
|
||||
var storeName = el.attr('id').substring(4).replace('-', ' ');
|
||||
for(var incomeSource in $SM.get('income')) {
|
||||
var income = $SM.get('income["'+incomeSource+'"]');
|
||||
@@ -1117,7 +1118,8 @@ var Room = {
|
||||
cost: good.cost(),
|
||||
text: _(g),
|
||||
click: Room.buy,
|
||||
width: '80px'
|
||||
width: '80px',
|
||||
ttPos: buySection.children().length > 10 ? 'top right' : 'bottom right'
|
||||
}).css('opacity', 0).attr('buildThing', g).appendTo(buySection).animate({opacity:1}, 300, 'linear');
|
||||
}
|
||||
} else {
|
||||
@@ -1152,7 +1154,8 @@ var Room = {
|
||||
},
|
||||
|
||||
compassTooltip: function(direction){
|
||||
var tt = $('<div>').addClass('tooltip bottom right');
|
||||
var ttPos = $('div#resources').children().length > 10 ? 'top right' : 'bottom right';
|
||||
var tt = $('<div>').addClass('tooltip ' + ttPos);
|
||||
$('<div>').addClass('row_key').text(_('the compass points '+ direction)).appendTo(tt);
|
||||
tt.appendTo($('#row_compass'));
|
||||
},
|
||||
|
||||
+20
-1
@@ -445,12 +445,31 @@ var Space = {
|
||||
.animate({opacity:1},1500);
|
||||
$('<br />')
|
||||
.appendTo('.centerCont');
|
||||
$('<br />')
|
||||
.appendTo('.centerCont');
|
||||
$('<span>')
|
||||
.addClass('endGame')
|
||||
.text(_('expanded story. alternate ending. behind the scenes commentary. get the app.'))
|
||||
.appendTo('.centerCont')
|
||||
.animate({opacity:1}, 1500);
|
||||
$('<br />')
|
||||
.appendTo('.centerCont');
|
||||
$('<br />')
|
||||
.appendTo('.centerCont');
|
||||
$('<span>')
|
||||
.addClass('endGame endGameOption')
|
||||
.text(_('app store.'))
|
||||
.text(_('iOS.'))
|
||||
.click(function() { window.open('https://itunes.apple.com/app/apple-store/id736683061?pt=2073437&ct=gameover&mt=8'); })
|
||||
.appendTo('.centerCont')
|
||||
.animate({opacity:1},1500);
|
||||
$('<br />')
|
||||
.appendTo('.centerCont');
|
||||
$('<span>')
|
||||
.addClass('endGame endGameOption')
|
||||
.text(_('android.'))
|
||||
.click(function() { window.open('https://play.google.com/store/apps/details?id=com.yourcompany.adarkroom'); })
|
||||
.appendTo('.centerCont')
|
||||
.animate({opacity:1},1500);
|
||||
Engine.options = {};
|
||||
Engine.deleteSave(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user