浏览代码

Don't mention the contents of carried Coin Pouches

Reddo 5 年之前
父节点
当前提交
4cae92da6c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/World/Classes/Things/CoinPouch.ts

+ 1 - 0
app/World/Classes/Things/CoinPouch.ts

@@ -97,6 +97,7 @@ Say.afterPrinting.addRule(new Rule(
         conditions : (rulebook : RulebookRunner<Say>) => {
             return Elements.RoomHandler.PrintingVisibleThingsRulebook.isRunning()
                 && (<Say> rulebook.noun).currentNoun instanceof CoinPouch
+                && (<CoinPouch> (<Say> rulebook.noun).currentNoun).getEnclosedOne() == WorldState.player.getRoom()
                 && (<CoinPouch> (<Say> rulebook.noun).currentNoun).getCoins() > 0;
         }
     }