Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pre = {}
- pre.head = 0
- pre.torso = 0
- pre.leftarm = 0
- pre.rightarm = 0
- pre.leftleg = 0
- pre.rightleg = 0
- preparry = {}
- preparry.head = false
- preparry.torso = false
- preparry.leftarm = false
- preparry.rightarm = false
- preparry.leftleg = false
- preparry.rightleg = false
- prerebounding = false
- function salveCure()
- if bals.salve == true and doing.salve == false and affCheck(checkSalve) == true then
- if affs.indifference == true then
- expandAlias("epidermal head")
- elseif affs.anorexia == true then
- expandAlias("epidermal torso")
- elseif affs.gorged == true then
- expandAlias("epidermal torso")
- elseif affs.crippled_throat == true then
- expandAlias("mending head")
- elseif affs.destroyed_throat == true then
- expandAlias("mending head")
- elseif affs.shivering == true then
- expandAlias("caloric")
- elseif affs.frozen == true then
- expandAlias("caloric")
- elseif affs.ablaze == true then
- expandAlias("mending torso")
- elseif defs.caloric == false then
- expandAlias("caloric")
- elseif affs.cracked_ribs == true then
- expandAlias("mending torso")
- elseif affs.head_damaged == true and affs.head_mangled == false then
- expandAlias("restoration head")
- elseif affs.left_leg_broken == true and affs.left_leg_damaged == false then
- expandAlias("mending legs")
- elseif affs.right_leg_broken == true and affs.right_leg_damaged == false then
- expandAlias("mending legs")
- elseif affs.left_arm_broken == true and affs.left_arm_damaged == false then
- expandAlias("mending arms")
- elseif affs.right_arm_broken == true and affs.right_arm_damaged == false then
- expandAlias("mending arms")
- elseif affs.throatclaw == true then
- expandAlias("mending head")
- elseif affs.left_leg_damaged == true and affs.left_leg_mangled == false then
- expandAlias("restoration left leg")
- elseif affs.right_leg_damaged == true and affs.right_leg_mangled == false then
- expandAlias("restoration right leg")
- elseif affs.left_arm_damaged == true and affs.left_arm_mangled == false then
- expandAlias("restoration left arm")
- elseif affs.right_arm_damaged == true and affs.right_arm_mangled == false then
- expandAlias("restoration right arm")
- elseif affs.torso_damaged == true and affs.torso_mangled == false then
- expandAlias("restoration torso")
- elseif affs.spinal_rip == true then
- expandAlias("restoration torso")
- elseif affs.left_leg_mangled == true then
- expandAlias("restoration left leg")
- elseif affs.right_leg_mangled == true then
- expandAlias("restoration right leg")
- elseif affs.left_arm_mangled == true then
- expandAlias("restoration left arm")
- elseif affs.right_arm_mangled == true then
- expandAlias("restoration right arm")
- elseif affs.torso_mangled == true then
- expandAlias("restoration torso")
- elseif affs.crushed_ribs == true then
- expandAlias("restoration torso")
- elseif affs.crushed_kneecaps == true then
- expandAlias("mending legs")
- elseif affs.crushed_elbows == true then
- expandAlias("mending arms")
- elseif tonumber(post.head) > 15 then
- expandAlias("restoration head")
- elseif tonumber(post.leftleg) > 15 then
- expandAlias("restoration left leg")
- elseif tonumber(post.rightleg) > 15 then
- expandAlias("restoration right leg")
- elseif tonumber(post.leftarm) > 15 then
- expandAlias("restoration left arm")
- elseif tonumber(post.rightarm) > 15 then
- expandAlias("restoration right arm")
- elseif tonumber(post.torso) > 15 then
- expandAlias("restoration torso")
- elseif affs.head_bruised == true then
- expandAlias("mending head")
- elseif affs.torso_bruised == true then
- expandAlias("mending torso")
- elseif affs.right_leg_bruised == true then
- expandAlias("mending legs")
- elseif affs.left_leg_bruised == true then
- expandAlias("mending left leg")
- elseif affs.left_arm_bruised == true then
- expandAlias("mending arms")
- elseif affs.right_arm_bruised == true then
- expandAlias("mending right arm")
- elseif defHunt == true and defs.blind == true then
- expandAlias("epidermal head")
- elseif defHunt == true and defs.deaf == true then
- expandAlias("epidermal head")
- elseif defs.mass == false and defCombat == true then
- expandAlias("mass")
- end -- if
- end -- if
- end -- function salveCure
- function limbDamage(limb, damage)
- limb = limb:gsub(" ", ""):lower()
- pre[limb] = tonumber(damage) + tonumber(pre[limb])
- display(pre)
- last_limb = limb
- last_damage = damage
- end
- function limbHeal(limb, heal)
- limb = limb:gsub(" ", ""):lower()
- pre[limb] = tonumber(heal) - tonumber(pre[limb])
- end
- function setLimb(limb, damage)
- limb = limb:gsub(" ", ""):lower()
- pre[limb] = tonumber(damage)
- end
- function parried()
- if not last_limb or not last_damage then return false end
- pre[last_limb] = pre[last_limb] - last_damage
- display(pre)
- end
Add Comment
Please, Sign In to add comment