208 | | Auras are JSON files located inside `simulation/data/auras/`. |
209 | | |
210 | | Use a standarized phrasing in the following contexts: |
211 | | |
212 | | ||='''context'''=||='''phrasing'''=||='''examples'''=|| |
| 208 | Auras are JSON files located inside `simulation/data/auras/`. Auras are temporary, their effects disappear when the aura entity is lost. |
| 209 | The shared format for the `auraDescription` is: **"[player] [class] [change] [attributes] [requirements]"**: |
| 210 | * **[player]**: if and only if an `affectedPlayers` entry is specified; by default auras affect only their own player. Other options are ([https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/simulation/components/Player.js Player.js]): |
| 211 | * `Ally`: player is our ally → Allied and Own |
| 212 | * `ExclusiveAlly`: player is our ally excluding ourself → Allied |
| 213 | * `MutualAlly`: player is our ally, and we are its ally → Allied and Own |
| 214 | * `ExclusiveMutualAlly`: player is our ally, and we are its ally, excluding ourself → Allied |
| 215 | * `Enemy`: player is our enemy → Enemy |
| 216 | * **[class]**: the affected class(es), e.g.: |
| 217 | * `"Citizen Infantry"` → Citizen Infantry |
| 218 | * `"Siege", "Structure"` → Structures and Siege Engines |
| 219 | * **[change]**: the actual modifications, e.g.: |
| 220 | * `"replace": 0` → have 0 |
| 221 | * `"multiply": 1.1` → +10% |
| 222 | * `"multiply": 0.85` → −15% |
| 223 | * `"add": 1` → +1 |
| 224 | * `"add": -25` → −25 |
| 225 | * **[attributes]**: the modified stats; see [[EnglishStyleGuide#Stats | above]] |
| 226 | * **[requirements]**: if and only if a `requiredTechnology` is set; specifies the `genericName` of the required technology; e.g.: |
| 227 | * `"pop_wonder"` → (requires the “Glorious Expansion” technology) ([https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/simulation/data/auras/structures/wonder_pop_2.json Glorious Expansion aura]) |
| 228 | |
| 229 | The exact format depends on the aura `type` (see [https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/simulation/components/Auras.js Auras.js]): |
| 230 | * player |
| 231 | * global |
| 232 | * range |
| 233 | * formation |
| 234 | * garrisonedUnits |
| 235 | * garrison |
| 236 | ||='''type'''=||='''format'''=||='''examples'''=|| |