mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
Fixed more runtime errors.
Monkeys no longer deathemote when gibbed. Added a Coder/Host level debug verb that forces the master_controller to run its process() proc. Pressing the button while the master_controller is already process()ing is not advised. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@978 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
proc/explosion(turf/epicenter, devastation_range, heavy_impact_range, light_impact_range, flash_range)
|
||||
if(!epicenter) return
|
||||
spawn(0)
|
||||
message_admins("Explosion with size ([devastation_range], [heavy_impact_range], [light_impact_range]) in area [epicenter.loc.name] ")
|
||||
|
||||
|
||||
@@ -19,14 +19,15 @@
|
||||
target.overlays += image('assemblies.dmi', "plastic-explosive2")
|
||||
user << "Bomb has been planted. Timer counting down from [src.timer]."
|
||||
spawn(src.timer*10)
|
||||
explosion(location, -1, -1, 2, 3)
|
||||
if (istype(src.target, /turf/simulated/wall)) src.target:dismantle_wall(1)
|
||||
else src.target.ex_act(1)
|
||||
if (isobj(src.target))
|
||||
if (src.target)
|
||||
del(src.target)
|
||||
if (src)
|
||||
del(src)
|
||||
if(target)
|
||||
explosion(location, -1, -1, 2, 3)
|
||||
if (istype(src.target, /turf/simulated/wall)) src.target:dismantle_wall(1)
|
||||
else src.target.ex_act(1)
|
||||
if (isobj(src.target))
|
||||
if (src.target)
|
||||
del(src.target)
|
||||
if (src)
|
||||
del(src)
|
||||
|
||||
/obj/item/weapon/plastique/attack(mob/M as mob, mob/user as mob, def_zone)
|
||||
return
|
||||
@@ -738,10 +738,12 @@
|
||||
if (user.l_hand == src)
|
||||
user.l_hand = R
|
||||
R.layer = 20
|
||||
src.part1.loc = R
|
||||
src.part2.loc = R
|
||||
src.part1.master = R
|
||||
src.part2.master = R
|
||||
if(src.part1)
|
||||
src.part1.loc = R
|
||||
src.part1.master = R
|
||||
if(src.part2)
|
||||
src.part2.loc = R
|
||||
src.part2.master = R
|
||||
var/turf/T = src.loc
|
||||
if (!( istype(T, /turf) ))
|
||||
T = T.loc
|
||||
@@ -762,9 +764,10 @@
|
||||
message_admins("[key_name_admin(user)] welded a time bomb. Temp: [src.part3.air_contents.temperature-T0C]")
|
||||
user.show_message("\blue A pressure hole has been bored to the plasma tank valve. The plasma tank can now be ignited.", 1)
|
||||
else
|
||||
src.status = 0
|
||||
bombers += "[key_name(user)] unwelded a time bomb. Temp: [src.part3.air_contents.temperature-T0C]"
|
||||
user << "\blue The hole has been closed."
|
||||
if(src)
|
||||
src.status = 0
|
||||
bombers += "[key_name(user)] unwelded a time bomb. Temp: [src.part3.air_contents.temperature-T0C]"
|
||||
user << "\blue The hole has been closed."
|
||||
src.part2.status = src.status
|
||||
|
||||
src.add_fingerprint(user)
|
||||
|
||||
Reference in New Issue
Block a user