BasePartBuffProvider

From Cosmoteer Wiki
< Modding‎ | ComponentsModding/Components/BasePartBuffProvider
Jump to navigation Jump to search
.rules file/node location: Cosmoteer.Ships.Parts.Buffs.BasePartBuffProviderRules

Stores rules common to all buff provider components.

This is an abstract class, made only for inheritance. Don't try to use it directly, pick an inheritor instead.

Itself inherits from OperationalPartComponent.

Inherited by :

Parameters (Complete list)
Name Type Required? Buffable? Default value Description
BuffType BuffType

meaning :

string

Yes - - (This parameter isn't serialized?)

Name of the buff.

BuffAmount float - Yes 1 Influences the strength of the buff's effect.

The exact formula seems to be arbitrary, written by yourself.

chaingun's RateOfFireRampUpBuff has "1".

BuffMultiplier ID<PartComponentRules>?

meaning :

a path to a component

- - - Influences the strength of the buff's effect.

The exact formula seems to be arbitrary, written by yourself.

chaingun's RateOfFireRampUpBuff has RateOfFireTween.

ShowBuffRange bool - - false (effectively) ??
BlueprintsOnly bool - - false (effectively) If true, this buff does nothing outside of Blueprint mode.

Used for buffs that only convey information useful for placing the part.
Used by chaingun_magazine.

ChainsFromBuffType BuffType?

meaning :

Name of a buff.

Yes - - Establishes a continuation of the buff between different parts.

Used by chaingun_magazine (but not the main gun), railgun_accelerator , railgun_launcher , also the MRT's thruster_rocket_extender and thruster_rocket_nozzle .
chaingun_magazine has ChaingunMagConnectionLeft or ChaingunMagConnectionRight

Notes

  • BuffAmount being buffable itself has interesting implications.