Changes between Version 62 and Version 63 of EnglishStyleGuide


Ignore:
Timestamp:
Aug 26, 2019, 9:40:20 AM (5 years ago)
Author:
Nescio
Comment:

aura types

Legend:

Unmodified
Added
Removed
Modified
  • EnglishStyleGuide

    v62 v63  
    206206
    207207=== Auras
    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'''=||
     208Auras are JSON files located inside `simulation/data/auras/`. Auras are temporary, their effects disappear when the aura entity is lost.
     209The 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 
     229The 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'''=||
    213237||Aura description||[class] [change] [attributes] ([requirements])||Garrisoned Siege Engines +3 health regeneration rate.[[br]]Structures −10% technology resource costs and research time.[[br]]Garrisoned Soldiers +3 armor and +20 vision range.[[br]]+40 maximum population limit (requires the “Glorious Expansion” technology).||
    214238||Hero aura description||[class] [change] [attributes]||Workers +15% build rate.[[br]]Temples −25% stone cost and +2 garrison heal rate.[[br]]Soldiers in his formation +3 armor and +15% movement speed.[[br]]Ship he is garrisoned in −30% batch training time and +50% movement speed.[[br]]Champions +2.0 capture attack strength, +20% melee and ranged attack damage, and +10% movement speed.[[br]]Temple of Amun +20% resource costs and build time; Amun Guards +20% resource costs and training time.||
    215239
    216240=== Technologies
    217 Technologies are JSON files located inside `simulation/data/technologies/`. All technologies are global and irreversible. Please follow the **"[player] [class] [change] [attributes]"** format, e.g.:
     241Technologies are JSON files located inside `simulation/data/technologies/`. All technologies are global and irreversible. Please follow the **"[player] [class] [change] [attributes]"** format (see auras [[EnglishStyleGuide#Auras above]]), e.g.:
    218242
    219243`       "tooltip": "Siege Engines +2 hack armor.",` ([https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/simulation/data/technologies/siege_armor.json siege armor])