rattle wrote:Force Lance:
It doesn't pierce Force Fields at all which renders it useless. Haven't tried battle shields due to tech level being rather late game.
bjg wrote:rattle wrote:Force Lance:
It doesn't pierce Force Fields at all which renders it useless. Haven't tried battle shields due to tech level being rather late game.
Did see that too. Reported, got no response.
Arioch wrote:Looking at the code, there may be a bug here; the Force Lance has shield_piercing_level set to 2 (normal shield piercing is 1), but it looks like the property function may be ignoring this value. I'll pass it along to Sven.
Code: Select all
function WeaponProperty.shield_piercing_level(w)
if not w:special 'Shield Piercing'
return 0
end
return 1
end
Code: Select all
return w.shield_piercing_level
Arioch wrote:That's the code I'm referring to; it appears to return a value of 1 even if shield_piercing is 2. Your change may not work, because shield_piercing may not always be set, and so the function may in some cases return an undetermined value.
It's not my code, it's Sven's, so I'll have to check with him to see if it's working the way it's supposed to.
Code: Select all
function WeaponProperty.shield_piercing_level(w)
if not w:special 'Shield Piercing'
return 0
end
if w.shield_piercing_level>1
return w.shield_piercing_level
else
return 1
end
end
rattle wrote:I found something weird happening...
Station graphics:
Are there plans for race specific stations? I think the Ashdar ones look out of place for everyone else, especially fighters, bombers etc.
Code: Select all
specials =set("Shield Piercing", "SP2"),
Code: Select all
function WeaponProperty.shield_piercing_level(w)
if not w:special 'SP2'
if not w:special 'Shield Piercing'
return 0
else
return 1
end
else
return 2
end
end
siyoa wrote:it seems I do not understand LUA syntax as I cannot call the weaponproperty no matter what I try, but found very ugly hack to make it work for the time being, at least it seems it is working
harpy eagle wrote:Out of curiosity, what were you trying before?
Code: Select all
function WeaponProperty.shield_piercing_level(w)
if not w:special 'Shield Piercing'
return 0
end
if w.shield_piercing_level>1
return w.shield_piercing_level
else
return 1
end
end
Code: Select all
function WeaponProperty.foo(w)
--return stuff
end
siyoa wrote:just tested it, it seems my "ugly hack" is still needed for Force Lance to pierce Force Fields ... bit disappointing that it wasn't fixed yet
Users browsing this forum: No registered users and 37 guests