Magic Achievement
The base class for all achievements. Extend this class to create your own.
First, create an entry in your data/config/magic_achievements.csv
file. Set the script
column to this class's package and name.
This class is not serialized to the save file.
Author
Wisp
Functions
Link copied to clipboard
Like regular advance, but NOT CALLED EVERY FRAME.
Link copied to clipboard
Called every frame during combat.
Link copied to clipboard
Called each time the game is loaded.
Link copied to clipboard
Called each time the game is saved.
Link copied to clipboard
Call when the achievement is completed.
Link copied to clipboard
Allows full control of the tooltip.
Link copied to clipboard
Link copied to clipboard
A map for storing arbitrary data.
Link copied to clipboard
Returns the time interval in seconds between each call to advanceAfterInterval.
Link copied to clipboard
Link copied to clipboard
Whether or not to show a progress bar for this achievement.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Defined in sounds.json.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns the color of the particle effect for this achievement's rarity.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Sets this achievement's data from the given JSON object.
Link copied to clipboard
Called when Starsector is loaded.
Link copied to clipboard
Link copied to clipboard
Do any cleanup logic here, e.g.
Link copied to clipboard
Called each time the achievement is loaded, for example when the game is loaded.
Link copied to clipboard
Call this to save any changes to the achievement (and all others as well).
Link copied to clipboard
Sets the time interval between each call to advanceAfterInterval.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Whether or not to show this achievement in the Intel screen.
Link copied to clipboard
Serializes this achievement to a JSON object.
Link copied to clipboard
Don't use this except for very good reasons, e.g.