From b72bedaf60724a8d6ebf1a61f534736363d01abd Mon Sep 17 00:00:00 2001 From: Fiftytwo Date: Fri, 17 Jul 2020 18:00:36 +0200 Subject: [PATCH] Add BrownMushroom and GreenMushroom categories in CBOT --- src/script/cbottoken.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/script/cbottoken.cpp b/src/script/cbottoken.cpp index 4ccbdda0..4cdae229 100644 --- a/src/script/cbottoken.cpp +++ b/src/script/cbottoken.cpp @@ -129,6 +129,8 @@ const char* GetObjectName(ObjectType type) if ( type == OBJECT_PLANT0 ) return "Bush"; if ( type == OBJECT_ROOT5 ) return "GraviPlant"; if ( type == OBJECT_QUARTZ0 ) return "Crystal"; + if ( type == OBJECT_MUSHROOM1 ) return "BrownMushroom"; + if ( type == OBJECT_MUSHROOM2 ) return "GreenMushroom"; return ""; } @@ -241,6 +243,8 @@ std::string GetHelpFilename(ObjectType type) if ( type == OBJECT_PLANT0 ) helpfile = "object/bush"; if ( type == OBJECT_ROOT5 ) helpfile = "object/gravi"; if ( type == OBJECT_QUARTZ0 ) helpfile = "object/crystal"; + if ( type == OBJECT_MUSHROOM1 ) helpfile = "object/gremush"; + if ( type == OBJECT_MUSHROOM2 ) helpfile = "object/bromush"; if (helpfile.empty()) return "";