Skip to content

Weapon Defs

juanosarg edited this page Jun 3, 2026 · 1 revision

<- Back

The Weapons module of Vanilla Expanded Framework adds a single new Def:

  • ToolsUsableByNonViolentPawnsDef: When added to a weapon, it will be usable by non-violent pawns. useful to define something as a tool.

How do I use this code?

Defs are added just by creating an XML file for them. Examples:

<VEF.Weapons.ToolsUsableByNonViolentPawnsDef>
	<defName>Example_ToolsUsableByNonViolentPawns</defName>
	<toolsUsableByNonViolentPawns>			
		<li>MyToolsDefName</li>
	</toolsUsableByNonViolentPawns>							
</VEF.Weapons.ToolsUsableByNonViolentPawnsDef>

Clone this wiki locally