Mod Helpers  v5.9.6
A centralized collection of library code, helpful services, and end-user functions for mod management and information.
HamstarHelpers.Helpers.Buffs.BuffHelpers Class Reference

Assorted static "helper" functions pertaining to buffs. More...

Static Public Member Functions

static void AddPermaBuff (Player player, int buffId)
 Adds a permanent buff to a player. Will persist across saves. More...
 
static void RemovePermaBuff (Player player, int buffId)
 Removes a permanent buff from a player. More...
 

Detailed Description

Assorted static "helper" functions pertaining to buffs.

Definition at line 8 of file BuffHelpers.cs.

Member Function Documentation

◆ AddPermaBuff()

static void HamstarHelpers.Helpers.Buffs.BuffHelpers.AddPermaBuff ( Player  player,
int  buffId 
)
static

Adds a permanent buff to a player. Will persist across saves.

Parameters
playerPlayer to apply buff to.
buffIdID of buff.

Definition at line 14 of file BuffHelpers.cs.

◆ RemovePermaBuff()

static void HamstarHelpers.Helpers.Buffs.BuffHelpers.RemovePermaBuff ( Player  player,
int  buffId 
)
static

Removes a permanent buff from a player.

Parameters
playerPlayer to remove buff from.
buffIdID of buff.

Definition at line 24 of file BuffHelpers.cs.


The documentation for this class was generated from the following file: