14 {
15 Object target_object = target.GetObject();
16
17
18 if ( target_object && target_object.IsFireplace() )
19 {
20 OvenIndoor fireplace_indoor = OvenIndoor.Cast( target_object );
21
22 if ( fireplace_indoor && !fireplace_indoor.HasAshes() && !fireplace_indoor.IsBurning() && fireplace_indoor.IsCargoEmpty() && !fireplace_indoor.DirectCookingSlotsInUse() )
23 {
24 InventoryLocation targetIL = new InventoryLocation;
26 return found;
27 }
28 }
29
30 return false;
31 }
FindInventoryLocationType
flags for searching locations in inventory