Fixed a supply shuttle runtime due to the stamping missing a null check.

Added a null check to cleanbots and new player preferences.
Did a bit of blob and antimatter work.


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3919 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
mport2004@gmail.com
2012-06-26 01:20:19 +00:00
parent ae6ab401e9
commit 88c867ea25
11 changed files with 51 additions and 23 deletions

View File

@@ -58,8 +58,23 @@
G.client.mob = B
del(G)
/*
Pulse(var/pulse = 0, var/origin_dir = 0)//Todo: Fix spaceblob expand
set background = 1
if(pulse > 20) return
//Looking for another blob to pulse
var/list/dirs = list(1,2,4,8)
dirs.Remove(origin_dir)//Dont pulse the guy who pulsed us
for(var/i = 1 to 4)
if(!dirs.len) break
var/dirn = pick(dirs)
dirs.Remove(dirn)
var/turf/T = get_step(src, dirn)
var/obj/effect/blob/B = (locate(/obj/effect/blob) in T)
if(!B)
expand(T)//No blob here so try and expand
return
B.Pulse((pulse+1),get_dir(src.loc,T))
return
return
*/

View File

@@ -6,7 +6,7 @@
brute_resist = 1
fire_resist = 2
var/list/spores = list()
var/max_spores = 6
var/max_spores = 4
update_icon()
@@ -18,6 +18,6 @@
run_action()
if(spores.len > max_spores) return 0
if(spores.len >= max_spores) return 0
new/obj/effect/critter/blob(src.loc, src)
return 1

View File

@@ -11,12 +11,13 @@
var/health = 30
var/brute_resist = 4
var/fire_resist = 1
/*Types
var/Blob
var/Node
var/Core
var/Factory
var/Shield
var/blob_type = "blob"
/*Types
Blob
Node
Core
Factory
Shield
*/

View File

@@ -241,8 +241,9 @@ text("<A href='?src=\ref[src];operation=oddbutton'>[src.oddbutton ? "Yes" : "No"
return
if(src.target && (src.target != null) && src.path.len == 0)
if(target && path.len == 0)
spawn(0)
if(!src || !target) return
src.path = AStar(src.loc, src.target.loc, /turf/proc/AdjacentTurfs, /turf/proc/Distance, 0, 30)
src.path = reverselist(src.path)
if(src.path.len == 0)

View File

@@ -209,7 +209,7 @@ This method wont take into account storage items developed in the future and doe
for(var/turf/T in get_area_turfs(shuttleat) )
var/obj/item/weapon/paper/slip = locate(/obj/item/weapon/paper/manifest) in T
if(slip)
if(slip.stamped.len) //yes, the clown stamp will work. clown is the highest authority on the station, it makes sense
if(slip.stamped && slip.stamped.len) //yes, the clown stamp will work. clown is the highest authority on the station, it makes sense
supply_shuttle_points += SUPPLY_POINTSPERSLIP
del(slip)
var/crate = locate(/obj/structure/closet/crate) in T

View File

@@ -91,6 +91,12 @@
brutevuln = 2
/* process()
if(prob(50))
TakeDamage(1)
..()*/
Die()
src.visible_message("<b>[src]</b> ruptures and explodes!")
src.alive = 0

View File

@@ -232,8 +232,7 @@ datum/preferences
// Modify this if you added more jobs and it looks like a mess. Add the jobs in the splitJobs that you want to trigger and intitate a new table.
if(splitJobs == null)
if (ticker.current_state >= GAME_STATE_PLAYING
)
if (ticker && ticker.current_state >= GAME_STATE_PLAYING)
splitJobs = list()
else
splitJobs = list("Chief Engineer")

View File

@@ -14,6 +14,7 @@
var/obj/item/weapon/am_containment/fueljar
var/update_shield_icons = 0
var/stability = 100
var/exploding = 0
var/active = 0//On or not
var/fuel_injection = 2//How much fuel to inject
@@ -27,6 +28,7 @@
var/stored_power = 0//Power to deploy per tick
New()
..()
linked_shielding = list()
@@ -40,6 +42,10 @@
process()
if(exploding)
explosion(get_turf(src),8,12,18,12)
if(src) del(src)
if(update_shield_icons && !shield_icon_delay)
check_shield_icons()
update_shield_icons = 0

View File

@@ -25,8 +25,9 @@ proc/cardinalrange(var/center)
var/stability = 100//If this gets low bad things tend to happen
var/efficiency = 1//How many cores this core counts for when doing power processing, plasma in the air and stability could affect this
New(var/l)
..(l)
New(loc)
..(loc)
spawn(10)
controllerscan()
return
@@ -182,8 +183,8 @@ proc/cardinalrange(var/center)
proc/check_stability(var/injecting_fuel = 0)
if(stability > 0) return
if(injecting_fuel)
explosion(get_turf(src),8,12,18,12)
if(injecting_fuel && control_unit)
control_unit.exploding = 1
if(src)
del(src)
return

View File

@@ -141,7 +141,7 @@
for(var/mob/O in viewers(src, null))
O.show_message("\red [user] cuts the cable.", 1)
if(!defer_powernet_rebuild)
if(defer_powernet_rebuild)
if(netnum && powernets && powernets.len >= netnum)
var/datum/powernet/PN = powernets[netnum]
PN.cut_cable(src)

View File

@@ -187,7 +187,6 @@
#define FILE_DIR "icons/vending_icons"
#define FILE_DIR "interface"
#define FILE_DIR "maps"
#define FILE_DIR "maps/backup"
#define FILE_DIR "maps/RandomZLevels"
#define FILE_DIR "sound"
#define FILE_DIR "sound/AI"