Skip to content

Class: StarEffect ​

csharp
[SaveActor(true)]
public class StarEffect : StatusEffect, ILogicUpdate, ICleanup, ICustomDestroyRoutine

Fields ​

NameDeclarationDescription
maxStarLevel`[BoxGroup("Star Settings", true, false, 0)]
public int maxStarLevel`
price`[BoxGroup("Star Settings", true, false, 0)]
public int[] price`
requiredLevel`[BoxGroup("Star Settings", true, false, 0)]
[LabelText("Req. Mastery Level")]
public int requiredLevel`
starIcon`[BoxGroup("Star Settings", true, false, 0)]
public Sprite starIcon`
type`[BoxGroup("Star Settings", true, false, 0)]
public StarType type`

Properties ​

NameDeclarationDescription
heropublic Hero hero { get; }
heroTypepublic virtual Type heroType { get; }
isMovementSkillTypepublic virtual bool isMovementSkillType { get; }
playerpublic DewPlayer player { get; }
skillpublic SkillTrigger skill { get; }
skillspublic SkillTrigger[] skills { get; }This never returns null.
skillTypepublic virtual Type skillType { get; }
strength`[SaveVar(SaveVarFlags.Default)]
public float strength { get; set; }`Strength of this star effect. Usually 1.0f, but can be lower if non-flexible star is slotted in different category slot.

Methods ​

DoSkill(Action<SkillTrigger>) ​

Do custom action on all matching skill. You can invoke the returned action to immediately call cleanup functions to stop the effect.

csharp
public SafeAction DoSkill(Action<SkillTrigger> callback)

Parameters:

NameTypeDescription
callbackSystem.Action<T><SkillTrigger>

Returns: SafeAction

DoSkill(Func&lt;SkillTrigger, Action&gt;) ​

Do custom action on all matching skill and do custom cleanup. You can invoke the returned action to immediately call cleanup functions to stop the effect.

csharp
public SafeAction DoSkill(Func<SkillTrigger, Action> callback)

Parameters:

NameTypeDescription
callbackSystem.Func<T, TResult><SkillTrigger,System.Action>

Returns: SafeAction

DoSkillBonusAll(SkillBonus) ​

Note the given bonus will be cloned. You can invoke the returned action to immediately call cleanup functions to stop the effect.

csharp
public SafeAction DoSkillBonusAll(SkillBonus bonus)

Parameters:

NameTypeDescription
bonusSkillBonus

Returns: SafeAction

IsIncompatibleWith(Hero, HeroLoadoutData) ​

csharp
public bool IsIncompatibleWith(Hero h, HeroLoadoutData l)

Parameters:

NameTypeDescription
hHero
lHeroLoadoutData

Returns: bool

IsSkillRelated(SkillTrigger) ​

csharp
public bool IsSkillRelated(SkillTrigger s)

Parameters:

NameTypeDescription
sSkillTrigger

Returns: bool

IsSkillRelated(string) ​

csharp
public bool IsSkillRelated(string s)

Parameters:

NameTypeDescription
sstring

Returns: bool

Maintained by the Shape of Dreams Modding Community