/* Carrots cannot be buried in the ground with toaster 1.0, by PurpleJazz http://www.jazz2online.com/snippets/100/carrots-cannot-be-buried-in-the-ground-with-toaster/ */ void onLevelLoad() { jjObjectPresets[OBJECT::CARROT].behavior = CantBeBuried; jjObjectPresets[OBJECT::FULLENERGY].behavior = CantBeBuried; } void CantBeBuried(jjOBJ@ obj) { obj.behave(BEHAVIOR::PICKUP); if (jjMaskedPixel(obj.xPos, obj.yPos + 8)) { obj.state = STATE::FLOAT; } }