Pikifen/Creating spray types

This page will guide you in the creation of spray types for Pikifen.

Introduction
Whenever a leader uses a spray, they spray a bunch of particles in a given direction, and certain mobs, dictated by the rules of the spray, will befall under some status effect. A status effect can make them faster (like an ultra-spicy spray), or make them stop on their tracks (like an ultra-bitter spray). Before creating sprays, you must have some status effect definitions. If you don't, please read the status effects guide for information on how to create some.

Spray definitions can be found on. In this text file, each block defines a spray, and the block's name is the spray's name.

Properties
Every spray block has these properties:


 *  : Angle to spray it at, relative to the leader's angle, in degrees. In other words, 0 means the leader sprays this forward, while 180 (half a circle) means they will spray it behind them.
 *  : How far the spray reaches in angle, in degrees. If a spray is only meant to hit directly in front of the leader, this should be very small, but if it's meant to also hit half a circle in front of the leader, it can be 180.
 *  : If true, any Pikmin that touch this spray will become sprouts.
 *  : Color of the spray's particles, in the format  or.
 *  : How far the spray reaches in distance, in pixels. This is used to calculate what mobs are affected, and how far the spray particles reach.
 *  : List of status effects inflicted on the targets of the spray. This list is separated by semicolon.
 *  : If true, the spray affects all Pikmin of the leader's group, regardless of distance. If false, the objects that are affected are those within the given angle and distance reach. For instance, for an ultra-bitter spray, all affected objects are the enemies in front of the leader, within a medium distance.
 *  : Name of the image used for its icon on the HUD. This file must be in, and the property must include the extension (e.g.  ).
 *  : How many ingredients (berries, in the canon games) does it take to concoct one new spray dosage.