8 if (
item_tool.ConfigIsExisting(
"OpenItemSpillRange"))
12 Debug.
LogError(
"OpenItemSpillRange config parameter missing, default values used ! ");
13 Error(
"OpenItemSpillRange config parameter missing, default values used !");
28 l.SetTransferParams(
true,
true,
true,
true);
static void LogError(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message as error message.
static void Log(string message=LOG_DEFAULT, string plugin=LOG_DEFAULT, string author=LOG_DEFAULT, string label=LOG_DEFAULT, string entity=LOG_DEFAULT)
Prints debug message with normal prio.
void OpenAndSwitchLambda(EntityAI old_item, string new_item_type, PlayerBase player, float spill_modificator, float specialty_weight)
override void OnSuccess(EntityAI new_item)
override void CopyOldPropertiesToNew(notnull EntityAI old_item, EntityAI new_item)
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...
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.
void Error(string err)
Messagebox with error message.
static int RandomIntInclusive(int min, int max)
Returns a random int number between and min [inclusive] and max [inclusive].