diff --git a/src/object/old_object.cpp b/src/object/old_object.cpp index e5dc9e3b..f8b61fb6 100644 --- a/src/object/old_object.cpp +++ b/src/object/old_object.cpp @@ -892,6 +892,17 @@ void COldObject::SetType(ObjectType type) m_implementedInterfaces[static_cast(ObjectInterfaceType::Controllable)] = false; } + // TODO: Another one? :/ + if ( m_type == OBJECT_POWER || // PowerCell + m_type == OBJECT_ATOMIC ) // NuclearCell + { + m_implementedInterfaces[static_cast(ObjectInterfaceType::PowerContainer)] = true; + } + else + { + m_implementedInterfaces[static_cast(ObjectInterfaceType::PowerContainer)] = false; + } + if ( m_type == OBJECT_MOBILEwc || m_type == OBJECT_MOBILEtc ||