Starsector API
|
Public Member Functions | |
MutableStat | getStat (String id) |
float | getValue (String id) |
StatBonus | getMod (String id) |
float | getValue (String id, float base) |
void | removeUmodified () |
Map< String, MutableStat > | getStats () |
Map< String, StatBonus > | getMods () |
boolean | isEmpty () |
Mutable stats that are created on-demand when they're needed, unlike the "standard" stats that have to be hardcoded.
Intended to be useful for stuff like the interactions between terrain, hull mod effects, and character skills. It's desirable for them to be able to affect each other, but since all can be modded in from scratch, it's hard to rely on the hardcoded stat set.
Copyright 2015 Fractal Softworks, LLC
Definition at line 21 of file DynamicStatsAPI.java.
StatBonus com.fs.starfarer.api.util.DynamicStatsAPI.getMod | ( | String | id | ) |
MutableStat com.fs.starfarer.api.util.DynamicStatsAPI.getStat | ( | String | id | ) |
Base value of the stat is 1.
id |
Base value of the stat is 1.
id |
boolean com.fs.starfarer.api.util.DynamicStatsAPI.isEmpty | ( | ) |
void com.fs.starfarer.api.util.DynamicStatsAPI.removeUmodified | ( | ) |