:: sweat
<<set $here = 'sweat'>>
<<set $ARGS = $location_var[$here]>>
<!-- ! gs 'sweat', 'add', X		replaces pcs_sweat += X-->
<<if $location_var[$here][0] == 'add'>>
	<<if $pc.deodorant_on == 1>>
		<!-- ! 1/2 to 1/1 sweat gains? Up for debate...-->
		<<set $pc.pcs_sweat += rand($larg(1) / 2, $larg(1))>>
	<<else>>
		<<set $pc.pcs_sweat += $larg(1)>>
	<</if>>
<</if>>
<!-- ! Applying deodorant | deodorant quality is currently not included, but could be later on-->
<!-- ! gs 'sweat', 'deo', deo_quality-->
<<if $location_var[$here][0] == 'deo'>>
	<!-- ! You can refresh before it "runs out"-->
	<<if $pc.deodorant_on == 0>>
		<<set $pc.deodorant_on = 1>>

	<</if>>
	<!-- ! Deodorant ware-off timer, general claims about duration seem to be around 1d+, so 1d it is-->
	<<set $pc.deodorant_time = $time.minutesTimestamp+ 24 * 60>>
	<!-- ! Small reduction in pcs_sweat?-->
	<<set $pc.pcs_sweat -= 2>>
	<<if $pc.pcs_sweat < 0>>
		<<set $pc.pcs_sweat = 0>>

	<</if>>
<</if>>
<!-- ! Removing of deodorant. Included in all shower/bathe/swim actions + anything similar-->
<!-- ! gs 'sweat', 'remove_deo'-->
<<if $location_var[$here][0] == 'remove_deo'>>
	<<set $pc.deodorant_on = 0>>
	<<set $pc.deodorant_time to null>>
<</if>>
