mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-06-29 07:42:30 +08:00
@@ -287,4 +287,5 @@ Events.Outside = [
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|||||||
@@ -257,6 +257,62 @@ Events.Room = [
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{/* The Shady Builder */
|
||||||
|
title: _('The Shady Builder'),
|
||||||
|
isAvailable: function() {
|
||||||
|
return Engine.activeModule == Room && $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'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
{ /* Mysterious Wanderer -- wood gambling */
|
{ /* Mysterious Wanderer -- wood gambling */
|
||||||
title: _('The Mysterious Wanderer'),
|
title: _('The Mysterious Wanderer'),
|
||||||
|
|||||||
Reference in New Issue
Block a user