mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-28 00:01:54 +08:00
Limit Fire event to only Outside module
This commit is contained in:
@@ -66,7 +66,7 @@ Events.Outside = [
|
|||||||
{
|
{
|
||||||
title: _('Fire'),
|
title: _('Fire'),
|
||||||
isAvailable: function() {
|
isAvailable: function() {
|
||||||
return $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) > 5;
|
||||||
},
|
},
|
||||||
scenes: {
|
scenes: {
|
||||||
'start': {
|
'start': {
|
||||||
|
|||||||
Reference in New Issue
Block a user