Page 1 of 1

quick question, weapon mod location

Posted: Sun Dec 17, 2017 12:17 am
by akkamaddi
Hi,

I'm trying to find where the weapon mods (accuracy, long range, etc.) actually do their game-mechanics stuff. I've gone through WEAPONS.lua and ~TECHNOLOGY.lua, but I've only found the descriptions and dependencies. I'm looking for the actual multipliers that make stuff change.

Thank you.

Re: quick question, weapon mod location

Posted: Sun Dec 17, 2017 5:39 pm
by sven
akkamaddi wrote:I'm trying to find where the weapon mods (accuracy, long range, etc.) actually do their game-mechanics stuff. I've gone through WEAPONS.lua and ~TECHNOLOGY.lua, but I've only found the descriptions and dependencies. I'm looking for the actual multipliers that make stuff change.


The range and accuracy stuff is in beam_attack_rolls.lua. While some of the other specials (like Enveloping), are in ship_damage.lua. If you're using visual studio, doing a "find all in files" on the string representation of the special usually finds stuff pretty easily -- but the implementations are scattered throughout the codebase, rather than cleanly centralized.