Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Autowiki data for xenomorph caste stats (#7019)
# About the pull request Generates autowiki templates for each caste's stats. As far as I can tell, the wiki currently displays xeno states in two places: 1. Plain text in the body of the article (e.g. [`Has 650 health, 25 armour, 400 plasma and 22 slash damage.`](https://cm-ss13.com/wiki/Boiler)) 2. The "XenoSkills" bar chart at the end of the article (e.g. https://cm-ss13.com/wiki/Boiler#Boiler_Stats) This PR enables full templatization of the plaintext stats, and optionally expanding them to include some new information (namely _speed_ and _claw strength_). The chart template uses tiers instead of numeric values, so backing it with this information would require more consideration. Notes: - Excluded castes are: Larva, Facehuggers, Hellhounds, and Predaliens - Speed is transformed to be more human-readable (e.g. Carrier goes from `-0.2` to `1.2`) # Explain why it's good for the game Less manual copying of numbers from the source code to the wiki. Optionally provides more information. # Testing Photographs and Procedure I do not know how I would go about testing my local changes on the wiki, so I have not. I have looked at the gun autowiki stuff and I do not see anything indicating that this would not work. <details> <summary>Autowiki Output</summary> ``` {"title":"Tempalte:AutoWiki/Content/XenoStats/Carrier","text":"{{Autowiki/XenoStats|Name=Carrier|Health=650|Armor=0|Plasma=500|Plasma Regeneration=3.5|Minimum Melee Damage=25|Maximum Melee Damage=35|Claw Strength=1|Evasion=0|Speed=1.2|Explosion Resistance=20}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Eggsac_Carrier","text":"{{Autowiki/XenoStats|Name=Eggsac Carrier|Health=650|Armor=0|Plasma=500|Plasma Regeneration=3.5|Minimum Melee Damage=25|Maximum Melee Damage=35|Claw Strength=1|Evasion=0|Speed=1.2|Explosion Resistance=20}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Ravager","text":"{{Autowiki/XenoStats|Name=Ravager|Health=650|Armor=25|Plasma=300|Plasma Regeneration=5|Minimum Melee Damage=45|Maximum Melee Damage=45|Claw Strength=3|Evasion=0|Speed=1|Explosion Resistance=80}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Berserker_Ravager","text":"{{Autowiki/XenoStats|Name=Berserker Ravager|Health=590|Armor=30|Plasma=0|Plasma Regeneration=5|Minimum Melee Damage=45|Maximum Melee Damage=45|Claw Strength=3|Evasion=0|Speed=1.15|Explosion Resistance=80}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Hedgehog_Ravager","text":"{{Autowiki/XenoStats|Name=Hedgehog Ravager|Health=590|Armor=30|Plasma=0|Plasma Regeneration=5|Minimum Melee Damage=35|Maximum Melee Damage=35|Claw Strength=3|Evasion=0|Speed=1.15|Explosion Resistance=80}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Praetorian","text":"{{Autowiki/XenoStats|Name=Praetorian|Health=650|Armor=25|Plasma=800|Plasma Regeneration=3|Minimum Melee Damage=40|Maximum Melee Damage=40|Claw Strength=1|Evasion=0|Speed=1.6|Explosion Resistance=40}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Dancer_Praetorian","text":"{{Autowiki/XenoStats|Name=Dancer Praetorian|Health=650|Armor=20|Plasma=800|Plasma Regeneration=3|Minimum Melee Damage=40|Maximum Melee Damage=40|Claw Strength=2|Evasion=0|Speed=1.85|Explosion Resistance=40}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Oppressor_Praetorian","text":"{{Autowiki/XenoStats|Name=Oppressor Praetorian|Health=650|Armor=20|Plasma=800|Plasma Regeneration=3|Minimum Melee Damage=30|Maximum Melee Damage=30|Claw Strength=2|Evasion=0|Speed=1.6|Explosion Resistance=40}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Vanguard_Praetorian","text":"{{Autowiki/XenoStats|Name=Vanguard Praetorian|Health=590|Armor=20|Plasma=800|Plasma Regeneration=3|Minimum Melee Damage=30|Maximum Melee Damage=30|Claw Strength=2|Evasion=0|Speed=1.75|Explosion Resistance=40}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Warden_Praetorian","text":"{{Autowiki/XenoStats|Name=Warden Praetorian|Health=590|Armor=20|Plasma=800|Plasma Regeneration=3|Minimum Melee Damage=20|Maximum Melee Damage=20|Claw Strength=2|Evasion=0|Speed=1.5|Explosion Resistance=40}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Hivelord","text":"{{Autowiki/XenoStats|Name=Hivelord|Health=550|Armor=0|Plasma=1000|Plasma Regeneration=5.5|Minimum Melee Damage=20|Maximum Melee Damage=25|Claw Strength=1|Evasion=0|Speed=0.8|Explosion Resistance=10}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Resin_Whisperer_Hivelord","text":"{{Autowiki/XenoStats|Name=Resin Whisperer Hivelord|Health=550|Armor=0|Plasma=800|Plasma Regeneration=5.5|Minimum Melee Damage=20|Maximum Melee Damage=25|Claw Strength=1|Evasion=0|Speed=0.8|Explosion Resistance=10}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Defender","text":"{{Autowiki/XenoStats|Name=Defender|Health=500|Armor=35|Plasma=100|Plasma Regeneration=5|Minimum Melee Damage=25|Maximum Melee Damage=30|Claw Strength=1|Evasion=0|Speed=1.6|Explosion Resistance=70}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Steelcrest_Defender","text":"{{Autowiki/XenoStats|Name=Steelcrest Defender|Health=500|Armor=35|Plasma=100|Plasma Regeneration=5|Minimum Melee Damage=20|Maximum Melee Damage=25|Claw Strength=1|Evasion=0|Speed=1.6|Explosion Resistance=70}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Warrior","text":"{{Autowiki/XenoStats|Name=Warrior|Health=500|Armor=20|Plasma=0|Plasma Regeneration=5|Minimum Melee Damage=30|Maximum Melee Damage=40|Claw Strength=2|Evasion=0|Speed=1.8|Explosion Resistance=40}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Crusher","text":"{{Autowiki/XenoStats|Name=Crusher|Health=700|Armor=30|Plasma=400|Plasma Regeneration=4|Minimum Melee Damage=40|Maximum Melee Damage=40|Claw Strength=3|Evasion=0|Speed=0.8|Explosion Resistance=100}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Charger_Crusher","text":"{{Autowiki/XenoStats|Name=Charger Crusher|Health=780|Armor=20|Plasma=400|Plasma Regeneration=4|Minimum Melee Damage=30|Maximum Melee Damage=30|Claw Strength=3|Evasion=0|Speed=0.95|Explosion Resistance=100}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Runner","text":"{{Autowiki/XenoStats|Name=Runner|Health=230|Armor=0|Plasma=0|Plasma Regeneration=1|Minimum Melee Damage=20|Maximum Melee Damage=25|Claw Strength=1|Evasion=0|Speed=3|Explosion Resistance=10}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Acider_Runner","text":"{{Autowiki/XenoStats|Name=Acider Runner|Health=345|Armor=15|Plasma=0|Plasma Regeneration=1|Minimum Melee Damage=20|Maximum Melee Damage=25|Claw Strength=1|Evasion=0|Speed=2.75|Explosion Resistance=10}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Boiler","text":"{{Autowiki/XenoStats|Name=Boiler|Health=650|Armor=20|Plasma=400|Plasma Regeneration=4|Minimum Melee Damage=20|Maximum Melee Damage=25|Claw Strength=1|Evasion=0|Speed=1|Explosion Resistance=20}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Trapper_Boiler","text":"{{Autowiki/XenoStats|Name=Trapper Boiler|Health=590|Armor=0|Plasma=400|Plasma Regeneration=4|Minimum Melee Damage=20|Maximum Melee Damage=25|Claw Strength=1|Evasion=0|Speed=0.75|Explosion Resistance=20}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Burrower","text":"{{Autowiki/XenoStats|Name=Burrower|Health=500|Armor=25|Plasma=600|Plasma Regeneration=4.5|Minimum Melee Damage=25|Maximum Melee Damage=30|Claw Strength=1|Evasion=0|Speed=1.2|Explosion Resistance=40}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Drone","text":"{{Autowiki/XenoStats|Name=Drone|Health=500|Armor=0|Plasma=1000|Plasma Regeneration=4.5|Minimum Melee Damage=20|Maximum Melee Damage=25|Claw Strength=1|Evasion=15|Speed=1.8|Explosion Resistance=0}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Gardener_Drone","text":"{{Autowiki/XenoStats|Name=Gardener Drone|Health=500|Armor=0|Plasma=1000|Plasma Regeneration=4.5|Minimum Melee Damage=20|Maximum Melee Damage=25|Claw Strength=1|Evasion=15|Speed=1.8|Explosion Resistance=0}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Healer_Drone","text":"{{Autowiki/XenoStats|Name=Healer Drone|Health=500|Armor=0|Plasma=1000|Plasma Regeneration=4.5|Minimum Melee Damage=15|Maximum Melee Damage=20|Claw Strength=1|Evasion=15|Speed=1.8|Explosion Resistance=0}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Lesser_Drone","text":"{{Autowiki/XenoStats|Name=Lesser Drone|Health=160|Armor=0|Plasma=300|Plasma Regeneration=4|Minimum Melee Damage=20|Maximum Melee Damage=20|Claw Strength=1|Evasion=10|Speed=1.6|Explosion Resistance=0}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Lurker","text":"{{Autowiki/XenoStats|Name=Lurker|Health=450|Armor=0|Plasma=400|Plasma Regeneration=4.5|Minimum Melee Damage=35|Maximum Melee Damage=35|Claw Strength=2|Evasion=0|Speed=2.4|Explosion Resistance=20}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Vampire_Lurker","text":"{{Autowiki/XenoStats|Name=Vampire Lurker|Health=390|Armor=20|Plasma=0|Plasma Regeneration=4.5|Minimum Melee Damage=30|Maximum Melee Damage=30|Claw Strength=2|Evasion=0|Speed=2.45|Explosion Resistance=20}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Sentinel","text":"{{Autowiki/XenoStats|Name=Sentinel|Health=500|Armor=0|Plasma=400|Plasma Regeneration=3|Minimum Melee Damage=20|Maximum Melee Damage=25|Claw Strength=1|Evasion=0|Speed=1.8|Explosion Resistance=10}}"} {"title":"Tempalte:AutoWiki/Content/XenoStats/Spitter","text":"{{Autowiki/XenoStats|Name=Spitter|Health=550|Armor=15|Plasma=600|Plasma Regeneration=4|Minimum Melee Damage=20|Maximum Melee Damage=30|Claw Strength=1|Evasion=0|Speed=1.4|Explosion Resistance=20}}"} {"title":"Template:Autowiki/Content/XenoStats","text":["{{Tempalte:AutoWiki/Content/XenoStats/Carrier}}","{{Tempalte:AutoWiki/Content/XenoStats/Eggsac_Carrier}}","{{Tempalte:AutoWiki/Content/XenoStats/Ravager}}","{{Tempalte:AutoWiki/Content/XenoStats/Berserker_Ravager}}","{{Tempalte:AutoWiki/Content/XenoStats/Hedgehog_Ravager}}","{{Tempalte:AutoWiki/Content/XenoStats/Praetorian}}","{{Tempalte:AutoWiki/Content/XenoStats/Dancer_Praetorian}}","{{Tempalte:AutoWiki/Content/XenoStats/Oppressor_Praetorian}}","{{Tempalte:AutoWiki/Content/XenoStats/Vanguard_Praetorian}}","{{Tempalte:AutoWiki/Content/XenoStats/Warden_Praetorian}}","{{Tempalte:AutoWiki/Content/XenoStats/Hivelord}}","{{Tempalte:AutoWiki/Content/XenoStats/Resin_Whisperer_Hivelord}}","{{Tempalte:AutoWiki/Content/XenoStats/Defender}}","{{Tempalte:AutoWiki/Content/XenoStats/Steelcrest_Defender}}","{{Tempalte:AutoWiki/Content/XenoStats/Warrior}}","{{Tempalte:AutoWiki/Content/XenoStats/Crusher}}","{{Tempalte:AutoWiki/Content/XenoStats/Charger_Crusher}}","{{Tempalte:AutoWiki/Content/XenoStats/Runner}}","{{Tempalte:AutoWiki/Content/XenoStats/Acider_Runner}}","{{Tempalte:AutoWiki/Content/XenoStats/Boiler}}","{{Tempalte:AutoWiki/Content/XenoStats/Trapper_Boiler}}","{{Tempalte:AutoWiki/Content/XenoStats/Burrower}}","{{Tempalte:AutoWiki/Content/XenoStats/Drone}}","{{Tempalte:AutoWiki/Content/XenoStats/Gardener_Drone}}","{{Tempalte:AutoWiki/Content/XenoStats/Healer_Drone}}","{{Tempalte:AutoWiki/Content/XenoStats/Lesser_Drone}}","{{Tempalte:AutoWiki/Content/XenoStats/Lurker}}","{{Tempalte:AutoWiki/Content/XenoStats/Vampire_Lurker}}","{{Tempalte:AutoWiki/Content/XenoStats/Sentinel}}","{{Tempalte:AutoWiki/Content/XenoStats/Spitter}}"]} ``` </details> --------- Co-authored-by: harryob <55142896+harryob@users.noreply.github.com>
- Loading branch information