963 {
964 int bitsPerSlot = 8;
965 int slotsPerInt = 32 / bitsPerSlot;
966
967 int groupIndex = slotIndex / slotsPerInt;
968 int bitOffset = (slotIndex % slotsPerInt) * bitsPerSlot;
969
970 int mask = 255 << bitOffset;
971 value = Math.Clamp(value, 0, 200);
972
974 temp &= ~mask;
975 temp |= (value << bitOffset);
977 }
int GetFertilizerBitmapByIndex(int index)
void SetFertilizerBitmapByIndex(int index, int value)