From ColdSphinX, 1 Year ago, written in Plain Text.
Embed
  1.         #Harbor
  2.         h=['harbor','ship','port','cove','bay']
  3.         if any(x in s for x in h):
  4.             poi['icon']='icons/marker_ship.png'
  5.         #Tower
  6.         t=['tower']
  7.         if any(x in s for x in t):
  8.             poi['icon']='icons/marker_tower.png'
  9.         #Farm
  10.         f=['farm','grove','homestead','collective','orchard','garden']
  11.         if any(x in s for  x in f):
  12.           poi['icon']='icons/marker_hoe.png'
  13.         #Mine
  14.         m=['mine','cave']
  15.         if any(x in s for x in m):
  16.             poi['icon']='icons/marker_mine.png'
  17.         #Village
  18.         v=['village','town','city']
  19.         if any(x in s for x in v):
  20.             poi['icon']='icons/marker_town.png'
  21.         #Blacksmith
  22.         b=['smith','forge']
  23.         if any(x in s for x in b):
  24.             poi['icon']='icons/marker_anvil.png'
  25.         #Factory
  26.         y=['factory','refinery','mill']
  27.         if any(x in s for x in y):
  28.             poi['icon']='icons/marker_factory.png'