class OpenItemSource
Methods 2
static void OpenAndSwitch(ItemBase item_tool, ItemBase item_target, PlayerBase player, float specialty_weight = 0)WIll open the 'item_target' by spawning a new entity and transferring item variables to the new one
References Object.ConfigGetIntArray(), Object.ConfigIsExisting(), Error()
Show 5 more
, array.Get(), array.Insert(), Debug.LogError(), Math.RandomIntInclusive(), and SwitchItems()Referenced by OpenCan.Do()
static void SwitchItems(EntityAI old_item, PlayerBase player, float spill_modificator, float specialty_weight)Will switch the 'item' for a new game entity, the new entity's classname will be formed by adding the 'suffix' to the classname of the old 'item'
References Object.GetType(), new OpenAndSwitchLambda(), TurnItemIntoItemLambda.SetTransferParams()
Show 1 more
, MiscGameplayFunctions.TurnItemIntoItemEx()Referenced by OpenAndSwitch()