Editing Modding Tutorials/Plague Gun (1.1)
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 7: | Line 7: | ||
This weapon will, when its shots hit a living target, have a chance to apply the [[Plague]] hediff ("health difference") to that target. | This weapon will, when its shots hit a living target, have a chance to apply the [[Plague]] hediff ("health difference") to that target. | ||
− | To do this, we will create XML ThingDefs for the gun and projectile, create a C# assembly which determines what happens when the projectile hits a target, and link that behavior back to the XML. | + | To do this, we will create XML `ThingDefs` for the gun and projectile, create a C# assembly which determines what happens when the projectile hits a target, and link that behavior back to the XML. |
This tutorial will assume a basic familiarity with XML and C# syntax. It should be simple enough to follow if you're only a beginner. | This tutorial will assume a basic familiarity with XML and C# syntax. It should be simple enough to follow if you're only a beginner. |