3 private const float COOKING_ON_STICK_UPDATE_TIME = 1;
5 override void CreateActionComponent()
25 override void CreateConditionComponents()
34 Object targetObject = target.GetObject();
36 if (fireplace_target && fireplace_target.CanCookOnStick() && item_on_stick && item_on_stick.CanBeCookedOnStick())
39 if (fireplace_target.IsBaseFireplace())
41 Fireplace fireplace = Fireplace.Cast(fireplace_target);
42 if (!fireplace.IsOven() && fireplace_target.CanCookOnStick())
49 if (fireplace_target.IsFireplaceIndoor())
51 if (fireplace_target.CanCookOnStick())
61 override void OnEndServer(
ActionData action_data)
63 super.OnEndServer(action_data);
65 ItemBase stick = action_data.m_MainItem;
70 item_on_stick.MakeSoundsOnClient(
false);