share/hedgewars/Data/Scripts/Multiplayer/Highlander.lua
changeset 13456 7d69c5605a9d
parent 13455 f38b72d64157
child 13461 7a0a56c52fd2
equal deleted inserted replaced
13455:f38b72d64157 13456:7d69c5605a9d
   198 			x,y = GetGearPosition(CurrentHedgehog)
   198 			x,y = GetGearPosition(CurrentHedgehog)
   199 			color = GetClanColor(GetHogClan(CurrentHedgehog))
   199 			color = GetClanColor(GetHogClan(CurrentHedgehog))
   200 		end
   200 		end
   201 
   201 
   202 		for w,c in pairs(wepArray) do
   202 		for w,c in pairs(wepArray) do
   203 			val = getGearValue(gear,w)
   203 			local val = getGearValue(gear,w)
   204 			if val ~= 0 and (multiUse or (wepArray[w] ~= 9 and getGearValue(CurrentHedgehog, w) == 0))  then
   204 			if val ~= 0 and (multiUse or (wepArray[w] ~= 9 and getGearValue(CurrentHedgehog, w) == 0))  then
   205 				setGearValue(CurrentHedgehog, w, val)
   205 				setGearValue(CurrentHedgehog, w, val)
   206 
   206 
   207 				-- if you are using multi-shot weapon, gimme one more
   207 				-- if you are using multi-shot weapon, gimme one more
   208 				if (GetCurAmmoType() == w) and (shotsFired ~= 0) then
   208 				if (GetCurAmmoType() == w) and (shotsFired ~= 0) then