renard162
Sep 23rd, 2022 (edited)
134
0
Never
This is comment for paste arszi_psy.script
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Fixes:
  2. - Many typos, undeclared variables, wrong values (like c_psy_stage_2 = math.min(c_psy_stage_2, (c_psy_stage_1 - 1) in line 43, that result in negative c_psy_stage_2 blocking PSY STAGE 2 from being activated)
  3. - Fixed state_anomaly_zone_close check in stress_multiplier calculation.
  4.  
  5. Refactorization:
  6. - Replaced many local functions to Anomaly's native functions, like printdbg, bind_campfire.get_nearby_campfire and clamp.
  7. - Replaced some checks by math.min and math.max to increase readability
  8.  
  9. Optimizations:
  10. - Changed some check functions to flag setter and replacing the function calling to flag read to prevent repeated checks per tick.
  11.  
  12. Implementations:
  13. - Bleed, Thirst, Hunger and Sleepiness increases stress_multiplier.
  14. - Bleed increases psy_wound_stress.
  15. - Increased the curve rate of psy_wound_stress (max psy damage still the same, but now the max damage occur with ~30% of HP).
  16. - campfire regeneration bonus is applied only if player is not in combat (check in line 473).
  17. - Stay in base or nearly campfire increases booster effect.
  18. - Sleep inside bases have more psy heal effect than use sleepbag.
  19. - Adjusted whisper sound volume and progressive volume increase (to return to initial volume, just change c_sound_zombified_volume in line 57 to 4).
  20. - Musical instruments recovers psy health (Commented due necessity of editing itms_manager.script, to re-enable uncomment the function get_playing_music_bonus() and the bonus sum in line 467 and apply the modifications to itms_manager.script).
Advertisement
Add Comment
Please, Sign In to add comment