mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-10 14:37:13 +08:00
Moved the shady builder to the room module
This commit is contained in:
@@ -91,62 +91,6 @@ Events.Outside = [
|
||||
}
|
||||
}
|
||||
},
|
||||
{/* The Shady Builder */
|
||||
title: _('The Shady Builder'),
|
||||
isAvailable: function() {
|
||||
return Engine.activeModule == Outside && $SM.get('game.buildings["hut"]', true) >= 5 && $SM.get('game.buildings["hut"]', true) < 20;
|
||||
},
|
||||
scenes: {
|
||||
'start':{
|
||||
text: [
|
||||
_('a shady builder passes through'),
|
||||
_('says he can build you a hut for less wood')
|
||||
],
|
||||
notification: _('a shady builder passes through'),
|
||||
buttons: {
|
||||
'build': {
|
||||
text: _('300 wood'),
|
||||
cost: { 'wood' : 300 },
|
||||
nextScene: {0.6: 'steal', 1: 'build'}
|
||||
},
|
||||
'deny': {
|
||||
text: _('say goodbye'),
|
||||
nextScene: 'end'
|
||||
}
|
||||
}
|
||||
},
|
||||
'steal': {
|
||||
text:[
|
||||
_("the shady builder has made off with your wood")
|
||||
],
|
||||
notification: _('the shady builder has made off with your wood'),
|
||||
buttons: {
|
||||
'end': {
|
||||
text: _('go home'),
|
||||
nextScene: 'end'
|
||||
}
|
||||
}
|
||||
},
|
||||
'build': {
|
||||
text:[
|
||||
_("the shady builder builds a hut")
|
||||
],
|
||||
notification: _('the shady builder builds a hut'),
|
||||
onLoad: function() {
|
||||
var n = $SM.get('game.buildings["hut"]', true);
|
||||
if(n < 20){
|
||||
$SM.set('game.buildings["hut"]',n+1);
|
||||
}
|
||||
},
|
||||
buttons: {
|
||||
'end': {
|
||||
text: _('go home'),
|
||||
nextScene: 'end'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{ /* Sickness */
|
||||
title: _('Sickness'),
|
||||
isAvailable: function() {
|
||||
|
||||
Reference in New Issue
Block a user