TG: HUD damage indicator now updates with halloss

Inspecting yourself for organ damage now randomly shows damaged organs if you
have halloss
Mining shuttle now shunts people where it wants to be
Shuttles now crush people if they fail to move out of where they want to be with
the initial shunt.
Revision: r3337
Author: 	 VivianFoxfoot
This commit is contained in:
Ren Erthilo
2012-04-29 22:45:02 +01:00
parent 2b96fec3f1
commit 18207f18d0
3 changed files with 38 additions and 0 deletions

View File

@@ -140,9 +140,13 @@ datum/shuttle_controller
AM.throw_at(E, 1, 1) AM.throw_at(E, 1, 1)
return return
*/ */
if(istype(T, /turf/simulated)) if(istype(T, /turf/simulated))
del(T) del(T)
for(var/mob/living/carbon/bug in end_location) // If someone somehow is still in the shuttle's docking area...
bug.gib()
start_location.move_contents_to(end_location) start_location.move_contents_to(end_location)
settimeleft(SHUTTLELEAVETIME) settimeleft(SHUTTLELEAVETIME)
world << "<B>The Emergency Shuttle has docked with the station! You have [timeleft()/60] minutes to board the Emergency Shuttle.</B>" world << "<B>The Emergency Shuttle has docked with the station! You have [timeleft()/60] minutes to board the Emergency Shuttle.</B>"
@@ -151,6 +155,7 @@ datum/shuttle_controller
return 1 return 1
if(1) if(1)
if(timeleft>0) if(timeleft>0)
return 0 return 0

View File

@@ -44,6 +44,36 @@ proc/move_mining_shuttle()
else else
fromArea = locate(/area/shuttle/mining/station) fromArea = locate(/area/shuttle/mining/station)
toArea = locate(/area/shuttle/mining/outpost) toArea = locate(/area/shuttle/mining/outpost)
var/list/dstturfs = list()
var/throwy = world.maxy
for(var/turf/T in toArea)
dstturfs += T
if(T.y < throwy)
throwy = T.y
// hey you, get out of the way!
for(var/turf/T in dstturfs)
// find the turf to move things to
var/turf/D = locate(T.x, throwy - 1, 1)
//var/turf/E = get_step(D, SOUTH)
for(var/atom/movable/AM as mob|obj in T)
AM.Move(D)
// NOTE: Commenting this out to avoid recreating mass driver glitch
/*
spawn(0)
AM.throw_at(E, 1, 1)
return
*/
if(istype(T, /turf/simulated))
del(T)
for(var/mob/living/carbon/bug in toArea) // If someone somehow is still in the shuttle's docking area...
bug.gib()
fromArea.move_contents_to(toArea) fromArea.move_contents_to(toArea)
if (mining_shuttle_location) if (mining_shuttle_location)
mining_shuttle_location = 0 mining_shuttle_location = 0

View File

@@ -193,11 +193,13 @@
var/status = "" var/status = ""
var/brutedamage = org.brute_dam var/brutedamage = org.brute_dam
var/burndamage = org.burn_dam var/burndamage = org.burn_dam
if(halloss > 0) if(halloss > 0)
if(prob(30)) if(prob(30))
brutedamage += halloss brutedamage += halloss
if(prob(30)) if(prob(30))
burndamage += halloss burndamage += halloss
if(brutedamage > 0) if(brutedamage > 0)
status = "bruised" status = "bruised"
if(brutedamage > 20) if(brutedamage > 20)
@@ -208,6 +210,7 @@
status += " and " status += " and "
if(burndamage > 40) if(burndamage > 40)
status += "peeling away" status += "peeling away"
else if(burndamage > 10) else if(burndamage > 10)
status += "blistered" status += "blistered"
else if(burndamage > 0) else if(burndamage > 0)