3 override void CreateActionComponent()
19 m_Text =
"#dismantle_oven";
42 if (player.GetBrokenLegs() ==
eBrokenLegs.BROKEN_LEGS)
45 Object target_object = target.GetObject();
47 if ( target_object && target_object.IsFireplace() )
51 if ( fireplace_target.IsBaseFireplace() && fireplace_target.CanDismantleOven() )
62 Object target_object = action_data.m_Target.GetObject();
65 if ( fireplace_target.CanDismantleOven() )
67 ItemBase attached_item =
ItemBase.Cast( fireplace_target.GetAttachmentByType( fireplace_target.ATTACHMENT_STONES ) );
71 attached_item.GetInventory().GetCurrentInventoryLocation( inventory_location );
72 fireplace_target.GetInventory().SetSlotLock( inventory_location.GetSlot(),
false );
75 fireplace_target.SetOvenState(
false );
78 if ( fireplace_target.HasStoneCircle() )
80 fireplace_target.SetLifetimeMax(
FireplaceBase.LIFETIME_FIREPLACE_STONE_CIRCLE );
84 fireplace_target.SetLifetimeMax( 10800 );