Mod Example: Weapon
This mod extends the Turret and Weapon generators to add a new Gatling-Railgun Weapon to the game.
About[edit | edit source]
WeaponTypeGatlingRailGun has to be added so that the Turret and Weapon generators can be extended for that type.
turretgenerator.luais extended to add a new generator function for the new turret type and some specifics about that turret.
weapongenerator.luais extended to add a new generator function for the new weapon type, which builds on the existing Railgun generation function
galaxy.luathe drop probability for the new weapon is added and set to a weight of
1, so that the turret will be generated in loot drops
modinfo.lua[edit | edit source]
serverSideOnly = falseThis mod would be server-only, if it wasn't for some localization files that have to be present on the client to translate.
clientSideOnly = falseThe mod cannot be client side only, since weaponry has to be generated on the server.
saveGameAltering = falseThe mod doesn't add any new scripts or assets to the game, so it doesn't alter save games in a way that they might become corrupted once the mod is no longer active. It only alters some numbers in weapons, but doesn't add any actually completely new weapons.
Localization[edit | edit source]
data/localization/ folder you can find an example for a German localization of texts that appear in the mod.