3 override void CreateActionComponent()
40 EntityAI mainItem = action_data.m_MainItem;
42 string color = mainItem.ConfigGetString(
"color");
43 string className =
"WitchHood_" + color;
45 EntityAI result1 = action_data.m_Player.SpawnEntityOnGroundPos(className, action_data.m_Player.GetPosition());
46 EntityAI result2 = action_data.m_Player.SpawnEntityOnGroundPos(
"Chainmail_Coif", action_data.m_Player.GetPosition());
48 if (!result1 || !result2)
51 MiscGameplayFunctions.TransferItemProperties(mainItem, result1);
52 MiscGameplayFunctions.TransferItemProperties(mainItem, result2);
54 action_data.m_MainItem.Delete();