Lightweight trait

A lightweight trait that was ported from skyrats, gives you twice the drunk power from drinks, watch what you down with each swig!
This commit is contained in:
Chemlight
2020-09-23 00:11:54 -07:00
parent 456f1f4482
commit decfb768e2
3 changed files with 13 additions and 0 deletions
@@ -40,6 +40,8 @@ All effects don't start immediately, but rather get worse over time; the rate is
var/booze_power = boozepwr
if(HAS_TRAIT(C, TRAIT_ALCOHOL_TOLERANCE)) //we're an accomplished drinker
booze_power *= 0.7
else if(HAS_TRAIT(C, TRAIT_ALCOHOL_LIGHTWEIGHT)) //Skyrat port
booze_power *= 2 //Skyrat port
C.drunkenness = max((C.drunkenness + (sqrt(volume) * booze_power * ALCOHOL_RATE)), 0) //Volume, power, and server alcohol rate effect how quickly one gets drunk
var/obj/item/organ/liver/L = C.getorganslot(ORGAN_SLOT_LIVER)
if (istype(L))