Guest User

DS3 Physical Defense calculation

a guest
Apr 27th, 2016
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. initialBaseDefense = 32
  2.  
  3. physicalDefense = vigor * 0.4 + attunement * 0.4 + endurance * 0.4 + vitality * 1.5 + strength * 0.73 + dexterity * 0.4 + intelligence * 0.4 + faith * 0.4 + luck * 0.4
  4.  
  5. if noHelmet
  6.   physicalDefense *= 0.9
  7.  
  8. if noChest
  9.   physicalDefense *= 0.8
  10.  
  11. if noArms
  12.   physicalDefense *= .94
  13.  
  14. if noLegs
  15.   phyicalDefense = .86
  16.  
  17. Math.floor(physicalDefense)
Add Comment
Please, Sign In to add comment