Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Autowiki data for xenomorph caste stats #7019

Merged
merged 11 commits into from
Aug 24, 2024

Conversation

RainAndSand
Copy link
Contributor

@RainAndSand RainAndSand commented Aug 23, 2024

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.)
  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.

Autowiki Output
{"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}}"]}

@github-actions github-actions bot added the Missing Changelog Maintainers always document their changes. label Aug 23, 2024
Copy link
Member

@harryob harryob left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you so much for doing this, it's awesome

code/modules/autowiki/pages/xeno_stats.dm Outdated Show resolved Hide resolved
@harryob harryob marked this pull request as draft August 24, 2024 09:44
Co-authored-by: harryob <55142896+harryob@users.noreply.github.com>
@harryob harryob marked this pull request as ready for review August 24, 2024 17:55
@harryob harryob added this pull request to the merge queue Aug 24, 2024
Merged via the queue into cmss13-devs:master with commit b8e0706 Aug 24, 2024
28 checks passed
@RainAndSand RainAndSand deleted the xeno-autowiki branch August 24, 2024 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Missing Changelog Maintainers always document their changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants