Show / Hide Table of Contents

Class SoulTotemContainer

Inheritance
System.Object
Container
SoulTotemContainer
Inherited Members
Container.Unknown
Container.Shiny
Container.GrubJar
Container.GeoRock
Container.Chest
Container.Tablet
Container.Shop
Container.Enemy
Container.Mimic
Container.Totem
Container.Bluggsac
Container.GetContainer(String)
Container.DefineContainer(Container)
Container.DefineContainer<T>()
Container.SupportsAll(String, Boolean, Boolean, Boolean)
Container.SupportsCost
Container.SupportsSceneChange
Container.OnEnable(PlayMakerFSM)
Container.AddChangeSceneToFsm(PlayMakerFSM, ChangeSceneInfo)
Container.AddCostToFsm(PlayMakerFSM, CostInfo)
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: ItemChanger.Containers
Assembly: ItemChanger.dll
Syntax
public class SoulTotemContainer : Container

Fields

| Improve this Doc View Source

Elevation

Declaration
public static readonly Dictionary<SoulTotemSubtype, float> Elevation
Field Value
Type Description
Dictionary<SoulTotemSubtype, System.Single>
| Improve this Doc View Source

HitCount

Declaration
public static readonly Dictionary<SoulTotemSubtype, int> HitCount
Field Value
Type Description
Dictionary<SoulTotemSubtype, System.Int32>
| Improve this Doc View Source

ShrinkageFactor

Declaration
public static readonly Dictionary<SoulTotemSubtype, float> ShrinkageFactor
Field Value
Type Description
Dictionary<SoulTotemSubtype, System.Single>
| Improve this Doc View Source

WasEverObtainedColor

Declaration
public static readonly Color WasEverObtainedColor
Field Value
Type Description
Color

Properties

| Improve this Doc View Source

Name

Declaration
public override string Name { get; }
Property Value
Type Description
System.String
Overrides
Container.Name
| Improve this Doc View Source

SupportsDrop

Declaration
public override bool SupportsDrop { get; }
Property Value
Type Description
System.Boolean
Overrides
Container.SupportsDrop
| Improve this Doc View Source

SupportsInstantiate

Declaration
public override bool SupportsInstantiate { get; }
Property Value
Type Description
System.Boolean
Overrides
Container.SupportsInstantiate

Methods

| Improve this Doc View Source

AddGiveEffectToFsm(PlayMakerFSM, ContainerGiveInfo)

Declaration
public override void AddGiveEffectToFsm(PlayMakerFSM fsm, ContainerGiveInfo info)
Parameters
Type Name Description
PlayMakerFSM fsm
ContainerGiveInfo info
Overrides
Container.AddGiveEffectToFsm(PlayMakerFSM, ContainerGiveInfo)
Remarks

Soul totems are implemented as follows:

  • The totem type is the type of the first SoulTotemItem in the items list, or B if no SoulTotemItems were included. It is also B if Soul Totem preloads were reduced.
  • The number of hits of the totem is the sum of the number of hits of each of the SoulTotemItems. If any of the SoulTotemItems have a negative number of hits, the totem is infinite.
  • The totem spawns non-soul items as shinies on the first hit. If the totem is depleted but has items, it will still spawn items on the first hit, but not give soul.
  • Soul items also count as given after the first hit. If all of the items on the soul totem have been obtained at least once, the totem becomes tinted orange.
  • The number of hits left on the totem is saved by its PersistentIntItem component.
| Improve this Doc View Source

ApplyTargetContext(GameObject, GameObject, Single)

Declaration
public override void ApplyTargetContext(GameObject obj, GameObject target, float elevation)
Parameters
Type Name Description
GameObject obj
GameObject target
System.Single elevation
Overrides
Container.ApplyTargetContext(GameObject, GameObject, Single)
| Improve this Doc View Source

ApplyTargetContext(GameObject, Single, Single, Single)

Declaration
public override void ApplyTargetContext(GameObject obj, float x, float y, float elevation)
Parameters
Type Name Description
GameObject obj
System.Single x
System.Single y
System.Single elevation
Overrides
Container.ApplyTargetContext(GameObject, Single, Single, Single)
| Improve this Doc View Source

GetNewContainer(ContainerInfo)

Declaration
public override GameObject GetNewContainer(ContainerInfo info)
Parameters
Type Name Description
ContainerInfo info
Returns
Type Description
GameObject
Overrides
Container.GetNewContainer(ContainerInfo)
| Improve this Doc View Source

GetNewSoulTotemName(AbstractPlacement)

Declaration
public static string GetNewSoulTotemName(AbstractPlacement placement)
Parameters
Type Name Description
AbstractPlacement placement
Returns
Type Description
System.String
| Improve this Doc View Source

GetSoulTotemSubtype(GameObject)

Declaration
public static SoulTotemSubtype GetSoulTotemSubtype(GameObject totem)
Parameters
Type Name Description
GameObject totem
Returns
Type Description
SoulTotemSubtype

Extension Methods

Extensions.Yield<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX