zer0Kerbal / OhScrap

Scrapyard based part failure mod for Kerbal Space Program.
https://forum.kerbalspaceprogram.com/index.php?/topic/192360-*/
GNU General Public License v2.0
5 stars 10 forks source link

[Request]: RealAntennaFailureModule #78

Open Gordon-Dry opened 1 year ago

Gordon-Dry commented 1 year ago

Description of the new feature / enhancement

A failure module for RealAntennas.

Proposed technical implementation details

Same as for stock antennas or RT antennas.

zer0Kerbal commented 1 year ago

@Gordon-Dry Here is a sample patch - it should work if RA works like it appears to.

// RealAntennasFailureModule.cfg v1.0.0.0
// OhScrap! (OHS)
// created: 20 Dec 2022
// updated: 

// this file: GPL-2.0 by zer0Kerbal

@PART[*]:HAS[@MODULE[ModuleDataTransmitter]]:NEEDS[RealAntennas,!RemoteTech,OhScrap,ScrapYard]:FOR[OhScrap]
{
    MODULE
    {
        name = AntennaFailureModule
        baseChanceOfFailure = 0.1
        expectedLifetime = 6
    }
}

Kindly try (in a not live save - it is experimental after all 🤯 ) and tell my how it works.