Fixes a xenoarch bug and the wrong ghost spawnpoint on the pra ship. (#7506)

This commit is contained in:
Alberyk
2019-11-25 18:10:03 -03:00
committed by Werner
parent 1d0110b164
commit d4722d9ffb
2 changed files with 14 additions and 13 deletions

View File

@@ -357,14 +357,15 @@
//5% chance to explode when first fired
//10% chance to have an unchargeable cell
//15% chance to gain a random amount of starting energy, otherwise start with an empty cell
if(prob(5))
new_gun.power_supply.rigged = 1
if(prob(10))
new_gun.power_supply.maxcharge = 0
if(prob(15))
new_gun.power_supply.charge = rand(0, new_gun.power_supply.maxcharge)
else
new_gun.power_supply.charge = 0
if(new_gun.power_supply)
if(prob(5))
new_gun.power_supply.rigged = 1
if(prob(10))
new_gun.power_supply.maxcharge = 0
if(prob(15))
new_gun.power_supply.charge = rand(0, new_gun.power_supply.maxcharge)
else
new_gun.power_supply.charge = 0
item_type = "gun"
if(27)