Merge pull request #7183 from Mechoid/SwarmPylonUpkeep

Swarm Balancing Upkeep
This commit is contained in:
Atermonera
2020-05-21 11:40:33 -07:00
committed by VirgoBot
parent 3237ae96d7
commit 2b702e3a26

View File

@@ -114,7 +114,7 @@
/obj/structure/cult/pylon/swarm/defender/pylonhit(var/damage)
if(!isbroken)
if(prob(1 + damage * 3) && round(damage * 0.8) >= 30)
if(prob(1 + damage * 3) && damage >= 25)
visible_message("<span class='danger'>[shatter_message]</span>")
STOP_PROCESSING(SSobj, src)
playsound(src,shatter_sound, 75, 1)
@@ -125,7 +125,7 @@
/obj/structure/cult/pylon/swarm/defender/attackpylon(mob/user as mob, var/damage)
if(!isbroken)
if(prob(1 + damage * 3) && round(damage * 0.8) >= 25)
if(prob(1 + damage * 2) && damage >= 15)
user.visible_message(
"<span class='danger'>[user] smashed \the [src]!</span>",
"<span class='warning'>You hit \the [src], and its crystal breaks apart!</span>",
@@ -142,7 +142,7 @@
to_chat(user, "You hit \the [src]!")
playsound(src,impact_sound, 75, 1)
else
if(prob(damage * 2))
if(prob(damage * 3))
to_chat(user, "You pulverize what was left of \the [src]!")
qdel(src)
else