SlashCo Wiki

SlashCo.GetConsumableEffectDuration

 number SlashCo.GetConsumableEffectDuration( Player ply, number duration )

Description

Returns the duration a consumable's effect should last for the given player, based on their active perks.
Doubles the duration if the "Glutton" perk is active.

Arguments

1Player ply

The player to check

2number duration

The base effect duration, in seconds

Returns

1number duration

The adjusted duration. Unchanged if the player is invalid or not a Survivor.