mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-27 09:54:36 +02:00
mniip: add back missing easter egg
This commit is contained in:
@@ -261,6 +261,9 @@ AnyType TPTScriptInterface::tptS_set(std::deque<std::string> * words)
|
|||||||
newValue = GetParticleType(((StringType)value).Value());
|
newValue = GetParticleType(((StringType)value).Value());
|
||||||
if (newValue < 0 || newValue >= PT_NUM)
|
if (newValue < 0 || newValue >= PT_NUM)
|
||||||
{
|
{
|
||||||
|
// TODO: add element CAKE to invalidate this
|
||||||
|
if (!strcasecmp(((StringType)value).Value().c_str(),"cake"))
|
||||||
|
throw GeneralException("Cake is a lie, not an element");
|
||||||
throw GeneralException("Invalid element");
|
throw GeneralException("Invalid element");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user