61 {
62 Object target_object = action_data.m_Target.GetObject();
64
65 if ( fireplace_target.CanDismantleOven() )
66 {
67 ItemBase attached_item =
ItemBase.Cast( fireplace_target.GetAttachmentByType( fireplace_target.ATTACHMENT_STONES ) );
68
69
71 attached_item.GetInventory().GetCurrentInventoryLocation( inventory_location );
72 fireplace_target.GetInventory().SetSlotLock( inventory_location.
GetSlot(),
false );
73
74
75 fireplace_target.SetOvenState( false );
76
77
78 if ( fireplace_target.HasStoneCircle() )
79 {
80 fireplace_target.SetLifetimeMax(
FireplaceBase.LIFETIME_FIREPLACE_STONE_CIRCLE );
81 }
82 else
83 {
84 fireplace_target.SetLifetimeMax( 10800 );
85 }
86 }
87 }
proto native int GetSlot()
returns slot id if current type is Attachment