mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-20 18:47:20 +01:00
wall refactor
This commit is contained in:
@@ -259,22 +259,27 @@
|
||||
/turf/simulated/wall/attack_hand(mob/user as mob)
|
||||
user.changeNext_move(CLICK_CD_MELEE)
|
||||
if (HULK in user.mutations)
|
||||
if (prob(40) || rotting)
|
||||
user << text("\blue You smash through the wall.")
|
||||
if (prob(hardness) || rotting)
|
||||
playsound(src, 'sound/effects/meteorimpact.ogg', 100, 1)
|
||||
user << text("<span class='notice'>You smash through the wall.</span>")
|
||||
user.say(pick(";RAAAAAAAARGH!", ";HNNNNNNNNNGGGGGGH!", ";GWAAAAAAAARRRHHH!", "NNNNNNNNGGGGGGGGHH!", ";AAAAAAARRRGH!" ))
|
||||
dismantle_wall(1)
|
||||
return
|
||||
else
|
||||
usr << text("\blue You punch the wall.")
|
||||
take_damage(rand(25, 75))
|
||||
playsound(src, 'sound/effects/bang.ogg', 50, 1)
|
||||
user << text("<span class='notice'>You punch the wall.</span>")
|
||||
return
|
||||
|
||||
if(rotting)
|
||||
user << "\blue The wall crumbles under your touch."
|
||||
dismantle_wall()
|
||||
return
|
||||
if(hardness <= 10)
|
||||
user << "<span class='notice'>This wall feels rather unstable.</span>"
|
||||
return
|
||||
else
|
||||
user << "<span class='notice'>The wall crumbles under your touch.</span>"
|
||||
dismantle_wall()
|
||||
return
|
||||
|
||||
user << "\blue You push the wall but nothing happens!"
|
||||
user << "<span class='notice'>You push the wall but nothing happens!</span>"
|
||||
playsound(src, 'sound/weapons/Genhit.ogg', 25, 1)
|
||||
src.add_fingerprint(user)
|
||||
..()
|
||||
|
||||
@@ -7,34 +7,11 @@
|
||||
explosion_block = 2
|
||||
damage_cap = 200
|
||||
max_temperature = 6000
|
||||
|
||||
hardness = 10
|
||||
walltype = "rwall"
|
||||
|
||||
var/d_state = 0
|
||||
|
||||
/turf/simulated/wall/r_wall/attack_hand(mob/user as mob)
|
||||
user.changeNext_move(CLICK_CD_MELEE)
|
||||
if (HULK in user.mutations)
|
||||
if (prob(10) || rotting)
|
||||
usr << text("\blue You smash through the wall.")
|
||||
usr.say(pick(";RAAAAAAAARGH!", ";HNNNNNNNNNGGGGGGH!", ";GWAAAAAAAARRRHHH!", "NNNNNNNNGGGGGGGGHH!", ";AAAAAAARRRGH!" ))
|
||||
dismantle_wall(1)
|
||||
return
|
||||
else
|
||||
usr << text("\blue You punch the wall.")
|
||||
return
|
||||
|
||||
if(rotting)
|
||||
user << "\blue This wall feels rather unstable."
|
||||
return
|
||||
|
||||
user << "\blue You push the wall but nothing happens!"
|
||||
playsound(src, 'sound/weapons/Genhit.ogg', 25, 1)
|
||||
src.add_fingerprint(user)
|
||||
..()
|
||||
return
|
||||
|
||||
|
||||
/turf/simulated/wall/r_wall/attackby(obj/item/W as obj, mob/user as mob, params)
|
||||
user.changeNext_move(CLICK_CD_MELEE)
|
||||
if (!user.IsAdvancedToolUser())
|
||||
|
||||
Reference in New Issue
Block a user