mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
Tweaks bullet penetration
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
/obj/item/weapon/gun/projectile/heavysniper
|
/obj/item/weapon/gun/projectile/heavysniper
|
||||||
name = "\improper PTRS-7 rifle"
|
name = "\improper PTRS-7 rifle"
|
||||||
desc = "A portable anti-armour rifle fitted with a scope. Fires 14.5mm AP shells."
|
desc = "A portable anti-armour rifle fitted with a scope. Originally designed to used against lightly armoured exosuits, it is capable of punching through non-reinforced walls with ease. Fires 14.5mm AP shells."
|
||||||
icon_state = "heavysniper"
|
icon_state = "heavysniper"
|
||||||
item_state = "sniper0"
|
item_state = "sniper0"
|
||||||
w_class = 4
|
w_class = 4
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
var/chance = 0
|
var/chance = 0
|
||||||
if(istype(A, /turf/simulated/wall))
|
if(istype(A, /turf/simulated/wall))
|
||||||
var/turf/simulated/wall/W = A
|
var/turf/simulated/wall/W = A
|
||||||
chance = round(damage/W.damage_cap*150)
|
chance = round(damage/W.damage_cap*180)
|
||||||
else if(istype(A, /obj/machinery/door))
|
else if(istype(A, /obj/machinery/door))
|
||||||
var/obj/machinery/door/D = A
|
var/obj/machinery/door/D = A
|
||||||
chance = round(damage/D.maxhealth*100)
|
chance = round(damage/D.maxhealth*100)
|
||||||
|
|||||||
Reference in New Issue
Block a user