ijontichy

dakkaArmor.h

Mar 28th, 2014
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.04 KB | None | 0 0
  1. #define ARMORCOUNT 4
  2.  
  3. int DakkaKnownArmors[ARMORCOUNT][1] =
  4. {
  5.     {"ArmorBonus"},
  6.     {"GreenArmor"},
  7.     {"BlueArmor"},
  8.     {"RawEnergyDeposit"},
  9. };
  10.  
  11. #define ARM_VALUECOUNT  5
  12. #define ARM_COMPAREMODE     0
  13. #define ARM_TYPE            1
  14. #define ARM_PICKUPPOINTS    2
  15. #define ARM_MAXPOINTS       3
  16. #define ARM_PROTECTION      4
  17.  
  18. // SET means "set the armor to the pickup value if it would amount of health protected"
  19. // ADD means "add armor up to the max value"
  20. // OLDSET means "set the armor the the pickup value if armor points would rise OR if protection would rise"
  21. // REPLACE means "set armor to this type"
  22. // SAME means "keep current armor type if available"
  23.  
  24. #define AMODE_HEALTH    0
  25. #define AMODE_ARMOR     1
  26.  
  27. #define ATYPE_REPLACE   0
  28. #define ATYPE_BONUS     1
  29.  
  30. int DakkaArmorValues[ARMORCOUNT][ARM_VALUECOUNT] =
  31. {
  32.     {AMODE_HEALTH,  ATYPE_BONUS,    1,      200,    0.33335},
  33.     {AMODE_HEALTH,  ATYPE_REPLACE,  100,    100,    0.33335},
  34.     {AMODE_HEALTH,  ATYPE_REPLACE,  200,    200,    0.5},
  35.     {AMODE_HEALTH,  ATYPE_REPLACE,  150,    150,    1.0},
  36. };
Advertisement
Add Comment
Please, Sign In to add comment