Skip to content

Fireworks

Caltinor edited this page May 30, 2022 · 1 revision

In this version of PMMO, fireworks are a Perk. This makes them optional for every skill. Fireworks have one config setting for their perk configuration "firework_skill" which takes the skill name for the firework being launched. Like most perks, this field is optional, however if no skill is supplied a plain white explosion will occur. By providing the skill you color the rocket the same as the skill. A default config in pmmo-Perks.toml looks as follows:

[[Perks.For_Event.SKILL_UP.fishing]]
    perk = "pmmo:fireworks"
    skill = "fishing"

in this example every time the fishing skill levels up, a firework will be spawned with the fishing skill color. if we changed the "skill" to "archery" we would still get a firework when fishing levels up, but the color would be that of archery.

Note: if skilltext is ever reimplemented, the skillname will also be shown making cross-skill usage impractical