public static void SetMapstone(string areaIdentifier) { try { MapstoneData data = Pedistals[areaIdentifier]; if (!GetMapstone(data)) { MapstoneBitfield = Characters.Sein.Inventory.IncRandomizerItem(1003, (1 << data.Bit)); } } catch (Exception e) { Randomizer.LogError("@SetMapstone:@ area " + areaIdentifier + ": " + e.Message); } }
public static bool GetMapstone(MapstoneData data) { return((MapstoneBitfield >> data.Bit) % 2 == 1); }