Code: Select all
setmetatable(t.heavy, {
__tostring=function() return string.format("%d-%d",floor(1.5*low),ceil(1.5*high)) end,
__call=function() return random_int(floor(1.5*low),ceil(1.5*high)) end,
})
Code: Select all
setmetatable(t.heavy, {
__tostring=function() return string.format("%d-%d",floor(1.5*low),ceil(1.5*high)) end,
__call=function() return random_int(floor(1.5*low),ceil(1.5*high)) end,
})
The way I'd try to test if it's used would be to change the multiplier to something absurd, such as 1500 instead of 1.5, and then check in game. Make the change blatant enough to be noticeable without ambiguity!Dragar wrote:Is this code used? It seems to imply heavy weapons have a 1.5 multiplier to damage, but this doesn't seem to be represented in the tech descriptions (e.g. on the tech tree or the ship builder, the standard weapon ranges are used).