mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
Completely reworks the plasma pistol, adds the dropwall shield generator (Serious) (#17556)
* oi you got a loicnse for that * Final touches on plasma bar sound/sprite, hot drops hot drop walls * Actually makes dropwalls good™️ * s p r i t e s and fixes * Gives vox / drask hand gun sprites * forgot cult shield, ICONS added with pain * Last minute fixes and deploy coder sprites * spacing Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> * Apply suggestions from code review Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com> Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> * Removes comments, improves deployment and sprite handling * Removes direction_check * Uses signals, various changes * Final™️ changes * Final™️ Final™️ Changes * Final™️ Final™️ Final™️ Changes * [insert final™️ x4 joke here] * Final™️ Change. *6 Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: Charlie <69320440+hal9000PR@users.noreply.github.com> Co-authored-by: SteelSlayer <42044220+SteelSlayer@users.noreply.github.com>
This commit is contained in:
co-authored by
AffectedArc07
Charlie
SteelSlayer
parent
61dbd53527
commit
2aade6012f
@@ -168,6 +168,10 @@
|
||||
current_charges--
|
||||
playsound(loc, "sparks", 100, TRUE, SHORT_RANGE_SOUND_EXTRARANGE)
|
||||
new /obj/effect/temp_visual/cult/sparks(get_turf(owner))
|
||||
if(istype(hitby, /obj/item/projectile))
|
||||
var/obj/item/projectile/P = hitby
|
||||
if(P.shield_buster)
|
||||
current_charges = 0 //Change it to remove 3 charges if it ever has its max shield limit increased above 3.
|
||||
if(!current_charges)
|
||||
owner.visible_message("<span class='danger'>The runed shield around [owner] suddenly disappears!</span>")
|
||||
shield_state = "broken"
|
||||
@@ -467,7 +471,7 @@
|
||||
// 10 * 3 gives it a 30% chance to shatter per hit.
|
||||
shatter_chance = min((P.damage - threshold) * 3, 75) // Maximum of 75% chance
|
||||
|
||||
if(prob(shatter_chance))
|
||||
if(prob(shatter_chance) || P.shield_buster)
|
||||
var/turf/T = get_turf(owner)
|
||||
T.visible_message("<span class='warning'>The sheer force from [P] shatters the mirror shield!</span>")
|
||||
new /obj/effect/temp_visual/cult/sparks(T)
|
||||
|
||||
Reference in New Issue
Block a user