BuffableValue

From Cosmoteer Wiki
< Modding‎ | ComponentsModding/Components/BuffableValue
Jump to navigation Jump to search
Code location (what's this?): Cosmoteer.Ships.Parts.Buffs.PartBuffableValue

A part sub-component that provides a value that can be modified by a buff.

Inherits from PartComponent. A clean way to keep track of a value in a part if that's all you want a component to do.

Used by thruster_rocket_nozzle .

Parameters (Complete list)
Name Type Required? Buffable? Default value Description
BuffableFloat float Yes Yes 1 The value that can be buffed.

thruster_rocket_nozzle has { BaseValue=1; BuffType=RocketThrust; BuffMode=Divide; }

Notes

Nothing yet.

Examples

thruster_rocket_nozzle references its BuffableValue component like this :

RampUpFinalBuffProvider
{
	Type = SelfBuffProvider
	BuffType = RocketRampUpFinal
	ChainsFromBuffType = RocketRampUp
	BuffAmount = { BaseValue=0; BuffType=RocketRampUp; BuffMode=Add; }
	BuffMultiplier = InvThrustBuffValue
}