Difference between revisions of "User:Dr. Strangelove/Test/Alpha"

From RimWorld Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{{#vardefine:defName|{{#invoke:Test|getDefName|warg}}}}
+
{{#vardefine:defName|{{#invoke:Test|getDefName|assault rifle}}}}
{{#if:{{#var:defName}}|
+
{{#vardefine:cooldown|{{#invoke:Test|query|defName={{#var:defName}}|statBases|RangedWeapon_Cooldown}}}}
{{#vardefine:len|{{#invoke:Test|count|defName={{#var:defName}}|tools}}}}
+
{{#vardefine:len|{{#invoke:Test|count|defName={{#var:defName}}|verbs}}}}
}}
+
{{#vardefine:defaultProjectile|{{#invoke:Test|query|defName={{#var:defName}}|verbs|1|defaultProjectile}}}}
 +
{{#vardefine:dmg|{{#invoke:Test|count|defName={{#var:defaultProjectile}}|projectile|damageAmountBase}}}}

Revision as of 08:05, 16 May 2021