Table of Contents

Class Marshmallow

Namespace
Exiled.API.Features.Items
Assembly
Exiled.API.dll

A wrapper class for InventorySystem.Items.MarshmallowMan.MarshmallowItem.

public class Marshmallow : Item, IWrapper<ItemBase>, IWrapper<MarshmallowItem>
Inheritance
Marshmallow
Implements
IWrapper<ItemBase>
IWrapper<MarshmallowItem>
Inherited Members
Extension Methods

Constructors

Marshmallow(MarshmallowItem)

Initializes a new instance of the Marshmallow class.

public Marshmallow(MarshmallowItem itemBase)

Parameters

itemBase MarshmallowItem

The 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

bool

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

cooldown double

How long until the player can cackle again (negative values do not affect current cooldown).

duration float

How 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

evilProcess AhpStat.AhpProcess

The PlayerStatsSystem.AhpStat.AhpProcess of the new evil player.