Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix Disruptor Bomb + Personal Shield incompatibility * fix not retaining the peashooter after picking an adv. weapon
- Loading branch information
Showing
2 changed files
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,7 +92,7 @@ end | |
local function ApplyWeaponData(unitID, weapon1, weapon2, shield, rangeMult) | ||
if (not weapon2) and weapon1 then | ||
local unitDefID = Spring.GetUnitDefID(unitID) | ||
local weaponName = UnitDefs[unitDefID].name .. "_" .. weapon1 | ||
local weaponName = "0_" .. weapon1 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
GoogleFrog
Contributor
|
||
local wd = WeaponDefNames[weaponName] | ||
if wd and wd.customParams and wd.customParams.manualfire then | ||
weapon2 = weapon1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
there's actually a unit named Zero in Zero-K :0