mirror of
https://github.com/quotefox/Hyper-Station-13.git
synced 2026-07-16 18:22:22 +01:00
getpercentaroused a little more sane to read
This commit is contained in:
@@ -112,7 +112,7 @@
|
||||
* despite the name of this, it actually returns a number between 0 and 100
|
||||
*/
|
||||
/mob/living/proc/getPercentAroused()
|
||||
var/percentage = ((100 / max_arousal) * arousalloss)
|
||||
var/percentage = ((arousalloss / max_arousal) * 100)
|
||||
return percentage
|
||||
|
||||
/mob/living/proc/isPercentAroused(percentage)//returns true if the mob's arousal (measured in a percent of 100) is greater than the arg percentage.
|
||||
|
||||
Reference in New Issue
Block a user