Atalkez

Untitled

Sep 16th, 2021
978
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. aff_short = {
  2.  loop = "timeloop",
  3.  retri = "retribution",
  4.  dep = "depression",
  5.  burning = "burn",
  6.  addiction = "add",
  7.  aeon = "ae",
  8.  agoraphobia = "agor",
  9.  anorexia = "ano",
  10.  asleep = "slp",
  11.  asthma = "ast",
  12.  barm = "uarm1",
  13.  damagedhead = "h1",
  14.  blackout = "",
  15.  bleeding = function() return "bld(" .. currentBleed .. ")" end,
  16.  damagedleftarm = "la2",
  17.  damagedleftleg = "ll2",
  18.  bleg = "uleg1",
  19.  damagedrightarm = "ra2",
  20.  damagedrightleg = "rl2",
  21.  mildtrauma = "t1",
  22.  carm = "uwna",
  23.  checkingimpatience = "",
  24.  claustrophobia = "clau",
  25.  brokenleftarm = "la1",
  26.  brokenleftleg = "ll1",
  27.  cleg = "uwnl",
  28.  climb = "uwcrip",
  29.  clumsiness = "Cl",
  30.  confusion = "con",
  31.  brokenrightarm = "ra1",
  32.  brokenrightleg = "rl1",
  33.  darkshade = "dark",
  34.  deadening = "dea",
  35.  deathsickness = "dsick",
  36.  dementia = "dem",
  37.  disloyalty = "disl",
  38.  disrupted = "dis",
  39.  dissonance = "diss",
  40.  dizziness = "diz",
  41.  epilepsy = "epi",
  42.  ensorcelled = "ENC",
  43.  fear = "fear",
  44.  flushings = "FL",
  45.  generosity = "gen",
  46.  haemophilia = "haem",
  47.  hallucinations = "hal",
  48.  healthleech = "HL",
  49.  hellsight = "hell",
  50.  hypersomnia = "hyper",
  51.  hypochondria = "hypo",
  52.  impaled = "Impale",
  53.  impatience = "IMP",
  54.  inquisition = "Inq",
  55.  bubonis = "cadmus",
  56.  sycophant = "rixil",
  57.  crone = "crone",
  58.  hecatecurse = "hecate",
  59.  itching = "itch",
  60.  lethargy = "let",
  61.  lightbind = "LBind",
  62.  loneliness = "lon",
  63.  lovers = "lust",
  64.  justice = "just",
  65.  whisperingmadness = "MAD",
  66.  masochism = "maso",
  67.  mangledhead = "h2",
  68.  mangledleftarm = "la3",
  69.  mangledleftleg = "ll3",
  70.  mangledrightarm = "ra3",
  71.  mangledrightleg = "rl3",
  72.  mycalium = "MYC",
  73.  serioustrauma = "t2",
  74.  nausea = "nau",
  75.  pacified = "pac",
  76.  palpatarfeed = "palp",
  77.  paralysis = "PAR",
  78.  paranoia = "para",
  79.  peace = "pea",
  80.  prone = "PR",
  81.  pyramides = "Pyr",
  82.  rebbies = "Reb",
  83.  recklessness = "reck",
  84.  sandfever = "Sand",
  85.  scytherus = "SCY",
  86.  sensitivity = "sen",
  87.  shadowstruck = "Impale",
  88.  shivering = "shiv",
  89.  shyness = "shy",
  90.  slickness = "sli",
  91.  slimeobscure = "slime",
  92.  speared = "Impale",
  93.  stupidity = "st",
  94.  stuttering = "stut",
  95.  tangled = "tang",
  96.  tied = "bind",
  97.  transfixation = "tfix",
  98.  weariness = "Wea",
  99.  webbed = "web",
  100.  vertigo = "vert",
  101.  voyria = "voy",
  102.  heartseed = "hseed",
  103.  sang8 = "sang8",
  104.  }
  105.  
  106. -- recoded, it's quicker by a third
  107. function affTags()
  108.   if next(Aff) then
  109.     local s = {}
  110.     for k,v in pairs(Aff) do
  111.         if k == "prone" then
  112.           s[#s+1] = "<red>PR"
  113.         --kelp stack coloring
  114.         elseif k=="asthma" or k=="sensitivity" or k=="weariness" or k=="clumsiness" or k=="hypochondria" or k=="healthleech" then
  115.           s[#s+1] = "<green>"..aff_short[k]
  116.         --goldenseal stack coloring
  117.         elseif k=="dissonance" or k=="dizziness" or k=="epilepsy" or k=="impatience" or k=="shyness" or k=="stupidity" then
  118.           s[#s+1] = "<yellow>"..aff_short[k]
  119.         --ginseng stack
  120.         elseif k=="addiction" or k=="darkshade" or k=="haemophilia" or k=="lethargy" or k=="nausea" or k=="scytherus" then
  121.           s[#s+1] = "<goldenrod>"..aff_short[k]
  122.         --broken limbs
  123.         elseif k=="barm" or k=="damagedhead" or k=="damagedleftarm" or k=="damagedleftleg" or k=="damagedrightarm" or k=="damagedrightleg" or k=="bleg" or k=="mildtrauma" or k=="carm" or k=="brokenleftarm" or k=="brokenleftleg" or k=="clef" or k=="climb" or k=="brokenrightarm" or k=="brokenrightleg" or k=="mangledhead" or k=="mangledleftarm" or k=="mangledleftleg" or k=="mangledrightarm" or k=="mangledrightleg" or k=="serioustrauma" then
  124.           s[#s+1] = "<orange>"..aff_short[k]
  125.         --all other affs get default coloring
  126.          elseif k == "bleeding" then
  127.             s[#s+1] = "<red>"..aff_short[k]()
  128.         elseif not aff_short[k] then
  129.          s[#s+1] = "<grey>"..k
  130.         else
  131.          s[#s+1] = "<grey>"..aff_short[k]
  132.         end
  133.     end
  134.     return #s > 0 and ("<IndianRed>["..table.concat(s, " ").."<IndianRed>]") or "" -- don't display just [] b/c of bleeding
  135.   else
  136.     return ""
  137.   end
  138. end
RAW Paste Data