actionconstants.c 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. /**@class Constants for Quantity Consumed by action per action
  2. */
  3. class UAQuantityConsumed
  4. {
  5. const float DEFAULT = 1;
  6. const float DISINFECT = 10;
  7. const float EAT_SMALL = 10;
  8. const float EAT_NORMAL = 15;
  9. const float EAT_BIG = 25;
  10. const float FILL_LIQUID = 200;
  11. const float FILL_SNOW = 100;
  12. const float POUR_LIQUID = 100;
  13. const float DRAIN_LIQUID = 100;
  14. const float DRINK = 65;
  15. const float BLOOD = 50;
  16. const float SALINE = 100;
  17. const float FUEL = 500;
  18. const float FIREPLACE_EXTINGUISHER = 200;
  19. const float FIREPLACE_LIQUID = 100;
  20. const float GARDEN_FERTILIZE = 10;
  21. const float GARDEN_WATER = 150;
  22. const float GARDEN_DISINFECT_PLANT = 0.06;
  23. };
  24. /**@class Constants for Time spent while doing action
  25. */
  26. class UATimeSpent
  27. {
  28. const float DEFAULT = 1;
  29. const float DEFAULT_PICK = 1.5;
  30. const float DEFAULT_FILL = 8;
  31. const float DEFAULT_SORT = 2;
  32. const float DEFAULT_CONSTRUCT = 5;
  33. const float DEFAULT_DECONSTRUCT = 15;
  34. const float DEFAULT_REPAIR_CYCLE = 5;
  35. const float DEFAULT_DESTROY = 60;
  36. const float DEFAULT_PLACE = 0;
  37. const float DEFAULT_DEPLOY = 5;
  38. const float DEFAULT_CRAFT = 6;
  39. const float DEFAULT_DECRAFT = 5;
  40. const float BANDAGE = 4;
  41. const float ADD_FUEL_TO_TORCH = 4;
  42. const float APPLY_SPLINT = 10;
  43. const float SEW_WOUNDS = 2;
  44. const float SEW_CUTS = 8;
  45. const float COLLECT_BLOOD = 10;
  46. const float COLLECT_SAMPLE = 3;
  47. const float TEST_BLOOD = 3;
  48. const float DEFIBRILATE = 3;
  49. const float INJECT = 3;
  50. const float MEASURE_TEMP = 12;
  51. const float CHECK_PULSE = 5;
  52. const float COVER_HEAD = 0.5;
  53. const float RESTRAIN = 10;
  54. const float UNRESTRAIN = 20;
  55. const float SHAVE = 12.75;
  56. const float SKIN = 10;
  57. const float BASEBUILDING_CONSTRUCT_FAST = 5;
  58. const float BASEBUILDING_CONSTRUCT_MEDIUM = 7.5;
  59. const float BASEBUILDING_CONSTRUCT_SLOW = 10;
  60. const float BASEBUILDING_DECONSTRUCT_FAST = 10;
  61. const float BASEBUILDING_DECONSTRUCT_MEDIUM = 12;
  62. const float BASEBUILDING_DECONSTRUCT_SLOW = 15;
  63. const float BASEBUILDING_REPAIR_FAST = 3;
  64. const float BASEBUILDING_REPAIR_MEDIUM = 5;
  65. const float BASEBUILDING_REPAIR_SLOW = 10;
  66. const float DRINK_POND = 2.0;
  67. const float DRINK_WELL = 3.5;
  68. const float DIG_GARDEN = 4;
  69. const float DIG_STASH = 10;
  70. const float DIG_WORMS = 10;
  71. const float BURY_ASHES = 6;
  72. const float BURY_BODY = 12;
  73. const float LOCK = 2;
  74. const float UNLOCK = 2;
  75. const float UNPACK = 2;
  76. const float WASH_HANDS = 3;
  77. const float WRING = 8;
  78. const float DISARM_MINE = 15;
  79. const float DISARM_EXPLOSIVE_REMOTE_PAIRED = 6;
  80. const float DISARM_EXPLOSIVE_REMOTE_UNPAIRED = 12;
  81. const float MAG_EMPTY = 0.5;
  82. const float MAG_LOAD = 0.5;
  83. const float FIREPLACE_IGNITE = 4;
  84. //const float FIREPLACE_HANDDRILL = 8;
  85. const float SALINE = 2;
  86. const float BLOOD = 2;
  87. const float START_ENGINE = 0.5;
  88. //const float INFINITE = -1;
  89. const float EXPLOSIVE_ARM = 6;
  90. };
  91. /**@class Constants for maximal Distances where from the action can be done
  92. */
  93. class UAMaxDistances
  94. {
  95. const float SMALL = 1.3;
  96. const float DEFAULT = 2.0;
  97. const float REPAIR = 3.0;
  98. const float LARGE = 8.0;
  99. const float LADDERS = 1.3;
  100. const float BASEBUILDING = 20;
  101. const float BASEBUILDING_SHORT = 1.0;
  102. const float EXPLOSIVE_REMOTE_ACTIVATION = 100.0;
  103. };
  104. /**@class Constants for spread of created items. Mostly for actions
  105. */
  106. class UAItemsSpreadRadius
  107. {
  108. const float PRECISE = 0.0;
  109. const float NARROW = 0.5;
  110. const float DEFAULT = 1.0;
  111. const float WIDE = 2.0;
  112. }
  113. /**@class Constants for specialty weight and type
  114. */
  115. class UASoftSkillsWeight
  116. {
  117. const float ROUGH_LOW = 0.01;
  118. const float ROUGH_MEDIUM = 0.02;
  119. const float ROUGH_HIGH = 0.03;
  120. const float PRECISE_LOW = -0.01;
  121. const float PRECISE_MEDIUM = -0.02;
  122. const float PRECISE_HIGH = -0.03;
  123. };
  124. /**@class Constants for damage values that are applied to item when using certain action
  125. */
  126. class UADamageApplied
  127. {
  128. const float BUILD = 4;
  129. const float DISMANTLE = 8;
  130. const float REPAIR = 3;
  131. const float DESTROY = 25;
  132. const float SAW_LOCK = 150;
  133. const float SKINNING = 10;
  134. const float SAW_PLANKS = 4;
  135. const float DEFUSE_TOOLS = 2;
  136. };
  137. /**@class Constants for water type
  138. */
  139. class UAWaterType
  140. {
  141. const string SEA = "sea"; //! fake
  142. const string FRESH = "fresh_water";
  143. const string STILL = "still_water";
  144. const string SNOW = "snow";
  145. const string ALL = string.Format("%1|%2|%3|%4", UAWaterType.SEA, UAWaterType.FRESH, UAWaterType.STILL, UAWaterType.SNOW);
  146. };
  147. /**@class Miscelaneous constants for use in actions
  148. */
  149. class UAMisc
  150. {
  151. const float FLAG_STEP_INCREMENT = 0.2; //0..1
  152. const float CONSUMPTION_SLOWDOWN_COEF_HOT = 5.0;
  153. };
  154. class UAFishingConstants
  155. {
  156. const float CYCLE_LENGTH_BASE = 5.0; //seconds, used as a backup
  157. const float CYCLE_LENGTH_MIN = 4.5; //seconds
  158. const float CYCLE_LENGTH_MAX = 5.5; //seconds
  159. const float SIGNAL_DURATION_MIN_BASE = 1.0; //seconds
  160. const float SIGNAL_DURATION_MAX_BASE = 1.5; //seconds
  161. const float SIGNAL_START_TIME_MIN_BASE = 0.5; //seconds
  162. const float SIGNAL_START_TIME_MAX_BASE = 2.5; //seconds
  163. const float SIGNAL_DEADZONE_START_DURATION = 0.5; //deadzone DURATION in seconds
  164. const float SIGNAL_DEADZONE_END_DURATION = 0.5; //deadzone DURATION in seconds
  165. const float SIGNAL_CYCLE_MEAN_DEFAULT = 10;
  166. const float SIGNAL_FISHING_CHANCE_COEF = 1.6;
  167. const float DAMAGE_HOOK = 1.5;
  168. const int EVENT_SPLASH_SIGNAL = 100;
  169. const int EVENT_ANIMATE_ROD_CLOSE = 101;
  170. };