From 3e6b90d6c1eeea12edb8fc8058941cbab8099d27 Mon Sep 17 00:00:00 2001 From: Alberto Rota Date: Mon, 3 Oct 2016 21:05:43 +0200 Subject: [PATCH] Replace "Ammount" for "Amount" (#7) --- scripts/golemancer/gol_resourceManager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/golemancer/gol_resourceManager.lua b/scripts/golemancer/gol_resourceManager.lua index 9acedcd..f5a79a9 100644 --- a/scripts/golemancer/gol_resourceManager.lua +++ b/scripts/golemancer/gol_resourceManager.lua @@ -96,7 +96,7 @@ end function allConsumed(pattern) local consumed = true for _, resource in pairs(pattern.requiredResources) do - consumed = consumed and self.consumedTable[resource.name] and self.consumedTable[resource.name] >= resource.ammount + consumed = consumed and self.consumedTable[resource.name] and self.consumedTable[resource.name] >= resource.amount end return consumed end