forge/blade/lib/enums.py [48:93]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   capacity = 1
   respawnprob = 0.05
   def __init__(self):
      super().__init__()
      self.harvestable = True
      self.dropTable = systems.DropTable()
      self.dropTable.add(ore.Copper, 1)

class Material(Enum):
   LAVA     = Lava
   WATER    = Water
   GRASS    = Grass
   SCRUB    = Scrub
   FOREST   = Forest
   STONE    = Stone
   OREROCK  = Orerock

IMPASSIBLE = (1, 5, 6)

class Defaults:
   BLACK    = (0, 0, 0)
   GRAY3    = (20, 20, 20)
   GRAY2    = (40, 40, 40)
   GRAY1    = (60, 60, 60)
   RED      = (255, 0, 0)
   GREEN    = (0, 255, 0)
   BLUE     = (0, 0, 255) 
   YELLOW   = (255, 255, 0)
   GOLD     = (212, 175, 55)
   MASK     = (214, 127, 255)

def rgb(h):
  h = h.lstrip('#')
  return tuple(int(h[i:i+2], 16) for i in (0, 2, 4))

def rgbNorm(h):
  h = h.lstrip('#')
  return tuple(int(h[i:i+2], 16)/255.0 for i in (0, 2, 4))

class Color:
    def __init__(self, name, hexVal):
        self.name = name
        self.hex = hexVal
        self.rgb = rgb(hexVal)
        self.norm = rgbNorm(hexVal)
        self.value = self.rgb #Emulate enum
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



jsuarez/extra/embyr_deprecated/embyr/enums.py [53:98]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   capacity = 1
   respawnprob = 0.05
   def __init__(self):
      super().__init__()
      self.harvestable = True
      self.dropTable = systems.DropTable()
      self.dropTable.add(ore.Copper, 1)

class Material(Enum):
   LAVA     = Lava
   WATER    = Water
   GRASS    = Grass
   SCRUB    = Scrub
   FOREST   = Forest
   STONE    = Stone
   OREROCK  = Orerock

IMPASSIBLE = (1, 5, 6)

class Defaults:
   BLACK    = (0, 0, 0)
   GRAY3    = (20, 20, 20)
   GRAY2    = (40, 40, 40)
   GRAY1    = (60, 60, 60)
   RED      = (255, 0, 0)
   GREEN    = (0, 255, 0)
   BLUE     = (0, 0, 255)
   YELLOW   = (255, 255, 0)
   GOLD     = (212, 175, 55)
   MASK     = (214, 127, 255)

def rgb(h):
  h = h.lstrip('#')
  return tuple(int(h[i:i+2], 16) for i in (0, 2, 4))

def rgbNorm(h):
  h = h.lstrip('#')
  return tuple(int(h[i:i+2], 16)/255.0 for i in (0, 2, 4))

class Color:
    def __init__(self, name, hexVal):
        self.name = name
        self.hex = hexVal
        self.rgb = rgb(hexVal)
        self.norm = rgbNorm(hexVal)
        self.value = self.rgb #Emulate enum
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



