浏览代码

Chapter 22 works in WASM.

Herbert Wolverson 5 年之前
父节点
当前提交
3c4cb84866
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      chapter-22-simpletraps/src/spawner.rs

+ 1 - 1
chapter-22-simpletraps/src/spawner.rs

@@ -45,7 +45,7 @@ fn room_table(map_depth: i32) -> RandomTable {
         .add("Tower Shield", map_depth - 1)
         .add("Tower Shield", map_depth - 1)
         .add("Rations", 10)
         .add("Rations", 10)
         .add("Magic Mapping Scroll", 2)
         .add("Magic Mapping Scroll", 2)
-        .add("Bear Trap", 2)
+        .add("Bear Trap", 5)
 }
 }
 
 
 /// Fills a room with stuff!
 /// Fills a room with stuff!