sweat.tw 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. :: sweat
  2. <<set $here = 'sweat'>>
  3. <<set $ARGS = $location_var[$here]>>
  4. <!-- ! gs 'sweat', 'add', X replaces pcs_sweat += X-->
  5. <<if $location_var[$here][0] == 'add'>>
  6. <<if $pc.deodorant_on == 1>>
  7. <!-- ! 1/2 to 1/1 sweat gains? Up for debate...-->
  8. <<set $pc.pcs_sweat += rand($ARGS[1] / 2, $ARGS[1])>>
  9. <<else>>
  10. <<set $pc.pcs_sweat += $ARGS[1]>>
  11. <</if>>
  12. <</if>>
  13. <!-- ! Applying deodorant | deodorant quality is currently not included, but could be later on-->
  14. <!-- ! gs 'sweat', 'deo', deo_quality-->
  15. <<if $location_var[$here][0] == 'deo'>>
  16. <!-- ! You can refresh before it "runs out"-->
  17. <<if $pc.deodorant_on == 0>>
  18. <<set $pc.deodorant_on = 1>>
  19. <</if>>
  20. <!-- ! Deodorant ware-off timer, general claims about duration seem to be around 1d+, so 1d it is-->
  21. <<set $pc.deodorant_time = $time.minutesTimestamp+ 24 * 60>>
  22. <!-- ! Small reduction in pcs_sweat?-->
  23. <<set $pc.pcs_sweat -= 2>>
  24. <<if $pc.pcs_sweat < 0>>
  25. <<set $pc.pcs_sweat = 0>>
  26. <</if>>
  27. <</if>>
  28. <!-- ! Removing of deodorant. Included in all shower/bathe/swim actions + anything similar-->
  29. <!-- ! gs 'sweat', 'remove_deo'-->
  30. <<if $location_var[$here][0] == 'remove_deo'>>
  31. <<set $pc.deodorant_on = 0>>
  32. <<set $pc.deodorant_time to null>>
  33. <</if>>