6 string spray_color = item_tool.ConfigGetString(
"color");
7 string item_color = item_target.ConfigGetString(
"color");
9 string new_class_name = base_name +
"_" + spray_color;
15 string spray_color = item_tool.ConfigGetString(
"color");
16 string item_color = item_target.ConfigGetString(
"color");
18 if( spray_color != item_color )
31 MiscGameplayFunctions.TurnItemIntoItemEx(player,
new PaintItemLambda(old_item, new_item, player));
static void Paint(ItemBase item_tool, ItemBase item_target, string base_name, PlayerBase player, float specialty_weight=0)
WIll open the 'item_target' by spawning a new entity and transferring item variables to the new one.
static bool CanPaintItem(ItemBase item_tool, ItemBase item_target)
static void SwitchItems(EntityAI old_item, string new_item, PlayerBase player)
Will switch the 'item' for a new game entity, the new entity's classname will be formed by adding the...
void PaintItemLambda(EntityAI old_item, string new_item_type, PlayerBase player)