Advertisement
Guest User

Untitled

a guest
Jul 11th, 2014
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.60 KB | None | 0 0
  1. mob/proc
  2. stamregens(in_bed)
  3. if(in_bed||src.stamregenbuff||(stampercent+src.wound)<=100||(!src.isarrancar&&src.IShollow||(src.isarrancar&&(src.wieldingsword||src.stark&&src.inshikai)&&src.arrancartype=="bb")||src.traitlist.Find("Mind Over Matter"))&&(stampercent+(src.wound-25))<=100)
  4. if(in_bed||src.stamregenbuff||src.has_buff||src.minazukiheals||(src.ISinoue&&src.fairystam&&src.inrelease)||src.isarrancar&&src.arrancartype=="ll"&&(src.wieldingsword&&!src.inshikai)||(!src.isarrancar&&(src.isajuuca||src.isvasterode))||(src.ulqregen&&src.inshikai))
  5. if(in_bed)src.stamregen=round(src.Mstam/250)
  6. else
  7. if(src.ISinoue)src.stamregen=round(src.Mstam/550)
  8. else src.stamregen=round(src.Mstam/625)
  9. else
  10. if(src.finalform) src.stamregen=round(src.Mstam/850)
  11. else
  12. if(src.Mstam<750) src.stamregen=1
  13. else
  14. if(src.kendostance) src.stamregen=round(src.Mstam/950)
  15. else src.stamregen=round(src.Mstam/750)
  16. src.stam += src.stamregen
  17.  
  18. reirregens(in_bed)
  19. var/reservebonus = src.reserve * 50
  20. var/synergybuff = (src.blastdefense + src.reimeleedefense + src.reiryokucapacity + src.reiryokuregen + src.fightingspirit) / 5
  21. var/crei = round(src.reiryoku * 100 / src.Mreiryoku)
  22.  
  23. if(crei<100+(src.reiryokucapacity)+synergybuff&&(src.ISinoue&&src.fairyreiatsu&&src.inrelease||bed||src.has_buff||src.minazukiheals))
  24. src.reirregen=src.Mreiryoku/(900-reservebonus-(src.reiryokuregen*8))
  25. src.reiryoku+=reirregen
  26. else if(crei<100+(src.reiryokucapacity)+synergybuff)
  27. if(src.Mreiryoku<1000) src.reirregen=1
  28. else src.reirregen=src.Mreiryoku/(1000-reservebonus-(src.reiryokuregen*8))
  29. src.reiryoku+=reirregen
  30.  
  31. setmybars()
  32. winset(src, "mhealth", "value = [round(src.stam * 100 / src.Mstam)]")
  33. winset(src, "mreiryoku", "value = [round(src.reiryoku * 100 / src.Mreiryoku)]")
  34. winset(src, "mwound", "value = [src.wound]")
  35. winset(src, "mfatigue", "value = [src.fatigue]")
  36.  
  37. pparrboost()
  38. if(src.arrancartype == "pp" && !src.inshikai && !src.hougpower && src.wieldingsword)
  39. var/mult = src.strmult
  40. /* lol cool math way of doing it
  41. for(var/i = 1 to 7)
  42. if(i < 7)
  43. if(src.momentum >= 10 + (i * 6))
  44. src.strmult = 1.15 + (i * 0.05)
  45. else
  46. if(src.momentum >= 50)
  47. src.strmult = 1.5 */
  48. if(src.momentum>=10)src.strmult=1.15
  49. else if(src.momentum>=16)src.strmult=1.2
  50. else if(src.momentum>=22)src.strmult=1.25
  51. else if(src.momentum>=28)src.strmult=1.3
  52. else if(src.momentum>=34)src.strmult=1.35
  53. else if(src.momentum>=40)src.strmult=1.4
  54. else if(src.momentum>=46)src.strmult=1.45
  55. else if(src.momentum>=50)src.strmult=1.5
  56.  
  57. if(mult!=strmult)
  58. src.strength=round(src.Mstrength*strmult)
  59.  
  60. mob/proc/Regeneration()
  61. set background = 1
  62.  
  63. if(src.regenerating || src.beingpunished || src.inyoruichichallenge || !src.realplayer || src.reiatsutraining || src.usingkesshun || src.owner)
  64. return
  65.  
  66. src.regenerating = 1
  67. while(src)
  68. sleep(10)
  69.  
  70. var/in_bed = 0
  71. if(locate(/obj/bedtop) in src.loc) in_bed = 1
  72. else in_bed = 0
  73.  
  74. var/spct = round(src.stam * 100 / src.Mstam)
  75.  
  76. if(src.in_shield || src.luppi || src.poisoned || src.poisoned2 || src.inyoruichichallenge || src.knockedout || src.usingkesshun)
  77. src.momentum = src.momentumrestrict ? 0 : src.momentummax ? 100 : 110 - (round(src.stam * 100 / src.Mstam)) : 0
  78. if(src.viewstat != 5 && src.viewstat != 3) src.Stats2()
  79. src.regenerating = 0
  80. break
  81.  
  82. if(src.reiryoku <= 0) src.reiryoku = 1
  83. if(src.stamina <= 0) src.stam = 1
  84. if(src.wound > 100) src.wound = 100
  85.  
  86. if(src.stam < src.Mstam)
  87. src.stamregens(in_bed)
  88. src.reirregens(in_bed)
  89.  
  90. if(src.wound > 0)
  91. if(in_bed && prob(5)) src.wound -= 1
  92. if(src.has_buff3||src.isarrancar&&src.arrancartype=="ll"&&(src.wieldingsword||src.stark&&src.inshikai)||(!src.isarrancar&&(src.isajuuca||src.isvasterode)))
  93. if(prob(3)) src.wound -= 1
  94. else if(prob(1)) src.wound -= 1
  95.  
  96. if(src.fatigue > 0 && !src.resting && in_bed && prob(50)) src.fatigue -= 1
  97.  
  98. spawn() src.setmybars()
  99. src.momentum = src.momentumrestrict ? 0 : src.momentummax ? 100 : 110 - (round(src.stam * 100 / src.Mstam)) : 0
  100.  
  101. if(src.maxexp > 500)
  102. if(schooltime && src.inseat) src.GiveExp(rand(4,7), 0, 1,,, 1)
  103. else src.GiveExp(rand(0,1), 0, 1,,, 1)
  104. else
  105. if(schooltime && src.inseat) src.GiveExp(rand(6,10), 0, 1,,,1 )
  106. else src.GiveExp(rand(3,7), 0, 1,,, 1)
  107.  
  108. src.pparrboost()
  109.  
  110. if(src.stam > src.Mstam) src.stam = src.Mstam
  111. if(src.wound < 0) src.wound = 0
  112. if(src.exp >= src.maxexp) spawn() src.LevelUp()
  113. if(src.viewstat != 5) spawn() src.Stats2()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement