From 5cda933b48b7d3eb75c8c9b37e1c22c79e91d95d Mon Sep 17 00:00:00 2001 From: sp Date: Wed, 17 Jan 2024 15:24:08 +0100 Subject: [PATCH] the agent cannot turn in lava --- util/PrismModulesPrinter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/PrismModulesPrinter.cpp b/util/PrismModulesPrinter.cpp index 5e27ad7..f409d64 100644 --- a/util/PrismModulesPrinter.cpp +++ b/util/PrismModulesPrinter.cpp @@ -276,8 +276,9 @@ namespace prism { std::string PrismModulesPrinter::printTurnGuard(const AgentName &a, const std::string &direction, const ActionId &actionId, const std::string &cond) { std::string actionName = "[" + a + "_turn_" + direction + "]"; agentNameActionMap.at(a).insert({actionId, actionName}); - std::string guard = " " + actionName; + std::string guard = " " + actionName + " & "; if(slipperyBehaviour()) guard += " !" + a + "IsOnSlippery & "; + if(anyLava) guard += " !" + a + "IsOnLava &"; guard += cond + " -> "; return guard; }