Class RoomRewards
Inheritance
object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
Mirror.NetworkBehaviour
RoomRewards
Implements
Inherited Members
Namespace: Global
Assembly: Dew.Core.dll
Syntax
[RoomComponentStartDependency(typeof(RoomModifiers))]
[RoomComponentStartDependency(typeof(RoomMonsters))]
public class RoomRewards : RoomComponent, ILogicUpdate
Fields
disableRewards
Declaration
public bool disableRewards
Field Value
| Type | Description |
|---|---|
| bool |
gemBonusQuality
Available on server.
Declaration
[NonSerialized]
public int gemBonusQuality
Field Value
| Type | Description |
|---|---|
| int |
giveHighRarityReward
Available on server.
Declaration
[NonSerialized]
public bool giveHighRarityReward
Field Value
| Type | Description |
|---|---|
| bool |
skillBonusLevel
Available on server.
Declaration
[NonSerialized]
public int skillBonusLevel
Field Value
| Type | Description |
|---|---|
| int |
Properties
isRegularRewardDisabled
Declaration
public bool isRegularRewardDisabled { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
DisableRegularRewards()
Disable all shrines and props that would normally spawn as a reward, except the ones from room modifiers.
(O) Default skill and essence shrines
(O) Natural spawning golds and dream dusts
(X) RoomMod_GoldEverywhere golds
(X) Shrines from RoomModifierBase.PlaceShrine()
Declaration
public void DisableRegularRewards()
DropChaosReward(Vector3, bool)
Declaration
public void DropChaosReward(Vector3 pos, bool isHighQuality)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.Vector3 | pos | |
| bool | isHighQuality |
OnRoomStartServer()
Declaration
public override void OnRoomStartServer()
Overrides
SpawnCombatCoreShrines()
Declaration
public void SpawnCombatCoreShrines()