mirror of
https://github.com/doublespeakgames/adarkroom.git
synced 2026-05-31 09:41:54 +08:00
Some refactoring and some bug fixes.
This commit is contained in:
+1
-1
@@ -974,7 +974,7 @@ var Room = {
|
||||
if(Room.buttons[thing]) {
|
||||
return true;
|
||||
} else if($SM.get('game.buildings["trading post"]', true) > 0) {
|
||||
if(thing == 'compass' || $SM.get('stores["'+thing+'"]')) {
|
||||
if(thing == 'compass' || typeof $SM.get('stores["'+thing+'"]') != 'undefined') {
|
||||
// Allow the purchase of stuff once you've seen it
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user