3 override void CreateActionComponent()
18 Blowtorch bt = Blowtorch.Cast(item);
19 if (!bt.HasEnoughEnergyForRepair(
UATimeSpent.FIREPLACE_IGNITE))
25 if (target_item && item)
31 if (target_item.IsKindOf(
"Fireplace"))
33 if (Fireplace.Cast(target_item).IsOven())
38 if (Fireplace.CanIgniteEntityAsFireplace(target_item))
49 else if (!item.IsIgnited() && !
IsItemInCargoOfSomething(item) && target_item.CanIgniteItem(item) && item.CanBeIgnitedBy(target_item))
60 super.OnUpdate(action_data);
62 if (action_data.m_State ==
UA_PROCESSING && !action_data.m_MainItem.GetCompEM().IsWorking())
70 super.OnExecuteServer(action_data);
72 action_data.m_MainItem.GetCompEM().SwitchOn();
77 super.OnFinishProgressServer(action_data);
79 action_data.m_MainItem.GetCompEM().SwitchOff();
84 super.OnEndServer(action_data);
86 action_data.m_MainItem.GetCompEM().SwitchOff();