OSDN Git Service

#keyPathが使用可能な部分にそれを適用
[kcd/KCD.git] / KCD / DestroyItem2Command.swift
index d3e5f53..4664c7b 100644 (file)
@@ -43,7 +43,7 @@ final class DestroyItem2Command: JSONCommand {
             return
         }
         
-        let resouces = ["fuel", "bull", "steel", "bauxite"]
+        let resouces = [#keyPath(Material.fuel), #keyPath(Material.bull), #keyPath(Material.steel), #keyPath(Material.bauxite)]
         
         zip(gm, resouces).forEach {