From e0138dfd10f2de73db4a6845f343f543dee9b411 Mon Sep 17 00:00:00 2001 From: Alex Nisnevich Date: Fri, 4 Jun 2021 12:49:22 -0700 Subject: [PATCH] make 'thatMuch()' JSfunc explicit --- src/main/scala/wordbots/CodeGenerator.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/wordbots/CodeGenerator.scala b/src/main/scala/wordbots/CodeGenerator.scala index 287da10..5c6c3a1 100644 --- a/src/main/scala/wordbots/CodeGenerator.scala +++ b/src/main/scala/wordbots/CodeGenerator.scala @@ -225,7 +225,7 @@ object CodeGenerator { case Count(collection) => s"count(${g(collection)})" case EnergyAmount(player) => s"energyAmount(${g(player)})" case MaximumEnergyAmount(player) => s"maximumEnergyAmount(${g(player)})" - case ThatMuch => "load('amount')" + case ThatMuch => "thatMuch()" case Times(n1, n2) => s"((${g(n1)}) * (${g(n2)}))" // Collections