Class Marshmallow
A wrapper class for InventorySystem.Items.MarshmallowMan.MarshmallowItem.
public class Marshmallow : Item, IWrapper<ItemBase>, IWrapper<MarshmallowItem>
- Inheritance
-
Marshmallow
- Inherited Members
- Extension Methods
Constructors
Marshmallow(MarshmallowItem)
Initializes a new instance of the Marshmallow class.
public Marshmallow(MarshmallowItem itemBase)
Parameters
itemBaseMarshmallowItemThe base InventorySystem.Items.MarshmallowMan.MarshmallowItem class.
Properties
Base
Gets the InventorySystem.Items.MarshmallowMan.MarshmallowItem that this class is encapsulating.
public MarshmallowItem Base { get; }
Property Value
- MarshmallowItem
Evil
Gets a value indicating whether this marshmallow man is evil.
public bool Evil { get; }
Property Value
Remarks
See MakeEvil(AhpProcess) in regards to making a marshmallow evil.
EvilAhpProcess
Gets or sets the PlayerStatsSystem.AhpStat.AhpProcess of the marshmallow man that would be used if he was evil.
public AhpStat.AhpProcess EvilAhpProcess { get; set; }
Property Value
- AhpStat.AhpProcess
Methods
Cackle(double, float)
Cackles for the owner even if they are not evil.
public void Cackle(double cooldown = -1, float duration = 5)
Parameters
cooldowndoubleHow long until the player can cackle again (negative values do not affect current cooldown).
durationfloatHow long players near the marshmallow man get effected by CustomPlayerEffects.TraumatizedByEvil.
MakeEvil(AhpProcess)
Makes the owner of this marshmallow evil. You CANNOT undo this without resetting the player.
public void MakeEvil(AhpStat.AhpProcess evilProcess = null)
Parameters
evilProcessAhpStat.AhpProcessThe PlayerStatsSystem.AhpStat.AhpProcess of the new evil player.