Skip to content

Commit

Permalink
Merge branch 'BEF-staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
mloc committed Jul 8, 2013
2 parents 31fc095 + b653f13 commit 75c8f6d
Show file tree
Hide file tree
Showing 855 changed files with 7,484 additions and 3,036 deletions.
14 changes: 12 additions & 2 deletions baystation12.dme
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#define FILE_DIR "sound/violin"
#define FILE_DIR "sound/voice"
#define FILE_DIR "sound/voice/Serithi"
#define FILE_DIR "sound/vox"
#define FILE_DIR "sound/weapons"
// END_FILE_DIR
// BEGIN_PREFERENCES
Expand Down Expand Up @@ -256,8 +257,6 @@
#include "code\game\gamemodes\nuclear\pinpointer.dm"
#include "code\game\gamemodes\revolution\revolution.dm"
#include "code\game\gamemodes\revolution\rp_revolution.dm"
#include "code\game\gamemodes\sandbox\h_sandbox.dm"
#include "code\game\gamemodes\sandbox\sandbox.dm"
#include "code\game\gamemodes\traitor\traitor.dm"
#include "code\game\gamemodes\wizard\rightandwrong.dm"
#include "code\game\gamemodes\wizard\soulstone.dm"
Expand Down Expand Up @@ -387,6 +386,7 @@
#include "code\game\machinery\doors\checkForMultipleDoors.dm"
#include "code\game\machinery\doors\door.dm"
#include "code\game\machinery\doors\firedoor.dm"
#include "code\game\machinery\doors\multi_tile.dm"
#include "code\game\machinery\doors\poddoor.dm"
#include "code\game\machinery\doors\shutters.dm"
#include "code\game\machinery\doors\unpowered.dm"
Expand Down Expand Up @@ -585,6 +585,7 @@
#include "code\game\objects\items\weapons\tanks\jetpack.dm"
#include "code\game\objects\items\weapons\tanks\tank_types.dm"
#include "code\game\objects\items\weapons\tanks\tanks.dm"
#include "code\game\objects\random\random.dm"
#include "code\game\objects\storage\coat.dm"
#include "code\game\objects\structures\barsign.dm"
#include "code\game\objects\structures\bedsheet_bin.dm"
Expand Down Expand Up @@ -709,6 +710,7 @@
#include "code\modules\admin\verbs\striketeam_syndicate.dm"
#include "code\modules\admin\verbs\ticklag.dm"
#include "code\modules\admin\verbs\tripAI.dm"
#include "code\modules\admin\verbs\vox_raiders.dm"
#include "code\modules\assembly\assembly.dm"
#include "code\modules\assembly\bomb.dm"
#include "code\modules\assembly\helpers.dm"
Expand Down Expand Up @@ -983,6 +985,7 @@
#include "code\modules\mob\living\silicon\pai\recruit.dm"
#include "code\modules\mob\living\silicon\pai\say.dm"
#include "code\modules\mob\living\silicon\pai\software.dm"
#include "code\modules\mob\living\silicon\robot\component.dm"
#include "code\modules\mob\living\silicon\robot\death.dm"
#include "code\modules\mob\living\silicon\robot\emote.dm"
#include "code\modules\mob\living\silicon\robot\examine.dm"
Expand All @@ -992,6 +995,7 @@
#include "code\modules\mob\living\silicon\robot\life.dm"
#include "code\modules\mob\living\silicon\robot\login.dm"
#include "code\modules\mob\living\silicon\robot\robot.dm"
#include "code\modules\mob\living\silicon\robot\robot_damage.dm"
#include "code\modules\mob\living\silicon\robot\robot_items.dm"
#include "code\modules\mob\living\silicon\robot\robot_modules.dm"
#include "code\modules\mob\living\silicon\robot\robot_movement.dm"
Expand All @@ -1002,6 +1006,7 @@
#include "code\modules\mob\living\simple_animal\parrot.dm"
#include "code\modules\mob\living\simple_animal\shade.dm"
#include "code\modules\mob\living\simple_animal\simple_animal.dm"
#include "code\modules\mob\living\simple_animal\vox.dm"
#include "code\modules\mob\living\simple_animal\worm.dm"
#include "code\modules\mob\living\simple_animal\friendly\cat.dm"
#include "code\modules\mob\living\simple_animal\friendly\corgi.dm"
Expand Down Expand Up @@ -1102,7 +1107,9 @@
#include "code\modules\projectiles\guns\energy\stun.dm"
#include "code\modules\projectiles\guns\energy\temperature.dm"
#include "code\modules\projectiles\guns\projectile\automatic.dm"
#include "code\modules\projectiles\guns\projectile\bow.dm"
#include "code\modules\projectiles\guns\projectile\pistol.dm"
#include "code\modules\projectiles\guns\projectile\pneumatic.dm"
#include "code\modules\projectiles\guns\projectile\revolver.dm"
#include "code\modules\projectiles\guns\projectile\shotgun.dm"
#include "code\modules\projectiles\projectile\animate.dm"
Expand All @@ -1119,6 +1126,7 @@
#include "code\modules\reagents\Chemistry-Reagents-Antidepressants.dm"
#include "code\modules\reagents\Chemistry-Reagents.dm"
#include "code\modules\reagents\Chemistry-Recipes.dm"
#include "code\modules\reagents\dartgun.dm"
#include "code\modules\reagents\grenade_launcher.dm"
#include "code\modules\reagents\reagent_containers.dm"
#include "code\modules\reagents\reagent_dispenser.dm"
Expand Down Expand Up @@ -1257,6 +1265,7 @@
#include "code\WorkInProgress\buildmode.dm"
#include "code\WorkInProgress\explosion_particles.dm"
#include "code\WorkInProgress\periodic_news.dm"
#include "code\WorkInProgress\Apples\artifacts.dm"
#include "code\WorkInProgress\Cael_Aislinn\meteor_battery.dm"
#include "code\WorkInProgress\Cael_Aislinn\sculpture.dm"
#include "code\WorkInProgress\Cael_Aislinn\Economy\Accounts.dm"
Expand Down Expand Up @@ -1302,6 +1311,7 @@
#include "code\WorkInProgress\Cael_Aislinn\Supermatter\ZeroPointLaser.dm"
#include "code\WorkInProgress\Chinsky\ashtray.dm"
#include "code\WorkInProgress\Cib\MedicalSideEffects.dm"
#include "code\WorkInProgress\kilakk\responseteam.dm"
#include "code\WorkInProgress\Mini\ATM.dm"
#include "code\WorkInProgress\Mini\atmos_control.dm"
#include "code\WorkInProgress\Ported\policetape.dm"
Expand Down
1 change: 0 additions & 1 deletion code/WorkInProgress/Apples/artifacts.dm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ obj/item/changestone/attack_hand(var/mob/user as mob)
H.gender = FEMALE
H.dna.ready_dna(H)
H.update_body()
H.update_face()
..()


Expand Down
8 changes: 4 additions & 4 deletions code/WorkInProgress/Cael_Aislinn/Economy/Accounts.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ var/global/datum/money_account/vendor_account

//add the account
station_account.transaction_log.Add(T)
for(var/obj/machinery/account_database/A in world)
for(var/obj/machinery/account_database/A in machines)
A.accounts.Add(station_account)

/proc/create_department_account(department)
Expand All @@ -50,7 +50,7 @@ var/global/datum/money_account/vendor_account

//add the account
department_account.transaction_log.Add(T)
for(var/obj/machinery/account_database/A in world)
for(var/obj/machinery/account_database/A in machines)
A.accounts.Add(department_account)

department_accounts[department] = department_account
Expand Down Expand Up @@ -194,7 +194,7 @@ var/global/datum/money_account/vendor_account
if(href_list["choice"])
switch(href_list["choice"])
if("sync_accounts")
for(var/obj/machinery/account_database/A in world)
for(var/obj/machinery/account_database/A in machines)
for(var/datum/money_account/M in src.accounts)
if(!A.accounts.Find(M))
A.accounts.Add(M)
Expand Down Expand Up @@ -257,7 +257,7 @@ var/global/datum/money_account/vendor_account

/obj/machinery/account_database/proc/add_account_across_all(var/new_owner_name = "Default user", var/starting_funds = 0, var/pre_existing = 0)
var/datum/money_account/M = add_account(new_owner_name, starting_funds, pre_existing)
for(var/obj/machinery/account_database/D in world)
for(var/obj/machinery/account_database/D in machines)
if(D == src)
continue
D.accounts.Add(M)
Expand Down
2 changes: 1 addition & 1 deletion code/WorkInProgress/Cael_Aislinn/Economy/EFTPOS.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
D.name = "small parcel - 'EFTPOS access code'"

/obj/item/device/eftpos/proc/reconnect_database()
for(var/obj/machinery/account_database/DB in world)
for(var/obj/machinery/account_database/DB in machines)
if(DB.z == src.z)
linked_db = DB
break
Expand Down
6 changes: 3 additions & 3 deletions code/WorkInProgress/Cael_Aislinn/Jungle/jungle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
New()
//pick a random temple to link to
var/list/waypoints = list()
for(var/obj/effect/landmark/temple/destination/T in world)
for(var/obj/effect/landmark/temple/destination/T in landmarks_list)
waypoints.Add(T)
if(!T)
return
Expand Down Expand Up @@ -163,7 +163,7 @@
num_spawned++

//make some randomly pathing rivers
for(var/obj/effect/landmark/river_waypoint/W in world)
for(var/obj/effect/landmark/river_waypoint/W in landmarks_list)
if (W.z != src.z || W.connected)
continue

Expand Down Expand Up @@ -236,7 +236,7 @@
num_spawned++

//get any path nodes placed on the map
for(var/obj/effect/landmark/path_waypoint/W in world)
for(var/obj/effect/landmark/path_waypoint/W in landmarks_list)
if (W.z == src.z)
path_nodes.Add(W)

Expand Down
2 changes: 1 addition & 1 deletion code/WorkInProgress/Mini/ATM.dm
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ log transactions
break

/obj/machinery/atm/proc/reconnect_database()
for(var/obj/machinery/account_database/DB in world)
for(var/obj/machinery/account_database/DB in machines)
if( DB.z == src.z && !(DB.stat & NOPOWER) && DB.activated )
linked_db = DB
break
Expand Down
7 changes: 5 additions & 2 deletions code/WorkInProgress/Mini/atmos_control.dm
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
if(current)
dat += specific()
else
for(var/obj/machinery/alarm/alarm in world)
for(var/obj/machinery/alarm/alarm in machines)
dat += "<a href='?src=\ref[src]&alarm=\ref[alarm]'>"
switch(max(alarm.danger_level, alarm.alarm_area.atmosalm))
if (0)
Expand Down Expand Up @@ -141,7 +141,10 @@

//Sets the temperature the built-in heater/cooler tries to maintain.
if(env == "temperature")
current.target_temperature = (selected[2] + selected[3])/2
if(current.target_temperature < selected[2])
current.target_temperature = selected[2]
if(current.target_temperature > selected[3])
current.target_temperature = selected[3]

spawn(1)
updateUsrDialog()
Expand Down
8 changes: 4 additions & 4 deletions code/WorkInProgress/kilakk/responseteam.dm
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var/sent_emergency_team = 0
// Shamelessly stolen nuke code
var/nuke_code
var/temp_code
for(var/obj/machinery/nuclearbomb/N in world)
for(var/obj/machinery/nuclearbomb/N in machines)
temp_code = text2num(N.r_code)
if(temp_code)
nuke_code = N.r_code
Expand Down Expand Up @@ -94,11 +94,11 @@ var/sent_emergency_team = 0

command_alert("Sensors indicate that [station_name()] has entered Code Red and is in need of assistance. We will prepare and dispatch an emergency response team to deal with the situation.", "NMV Icarus Command")

for(var/obj/effect/landmark/L in world)
for(var/obj/effect/landmark/L in landmarks_list)
if(L.name == "Response Team")
leader_selected = member_number == 1?1:0 // The last person selected will be the leader

var/mob/living/carbon/human/new_member = create_response_team(L, leader_selected)
var/mob/living/carbon/human/new_member = spawn_response_team(L, leader_selected)

new_member.age = !leader_selected ? rand(23,35) : rand(35,45)

Expand Down Expand Up @@ -188,7 +188,7 @@ var/sent_emergency_team = 0
return 1

// Mob creation
/client/proc/create_response_team(obj/spawn_location, leader_selected = 0)
/client/proc/spawn_response_team(obj/spawn_location, leader_selected = 0)
var/mob/living/carbon/human/new_member = new(spawn_location.loc)

return new_member
Expand Down
18 changes: 14 additions & 4 deletions code/ZAS/Connection.dm
Original file line number Diff line number Diff line change
Expand Up @@ -75,21 +75,31 @@ connection
var/list/connections = air_master.turfs_with_connections[ref_A]
connections.Remove(src)

//Ensure we delete the right values by sanity checkign right before deletion.
Sanitize()

//Remove connection from current zones.
//Remove connection from zones.
if(A)
if(A.zone && A.zone.connections)
A.zone.connections.Remove(src)
if(!A.zone.connections.len)
A.zone.connections = null

if(istype(zone_A) && (!A || A.zone != zone_A))
if(zone_A.connections)
zone_A.connections.Remove(src)
if(!zone_A.connections.len)
zone_A.connections = null

if(B)
if(B.zone && B.zone.connections)
B.zone.connections.Remove(src)
if(!B.zone.connections.len)
B.zone.connections = null

if(istype(zone_B) && (!B || B.zone != zone_B))
if(zone_B.connections)
zone_B.connections.Remove(src)
if(!zone_B.connections.len)
zone_B.connections = null

//Disconnect zones while handling unusual conditions.
// e.g. loss of a zone on a turf
if(A && A.zone && B && B.zone)
Expand Down
Loading

0 comments on commit 75c8f6d

Please sign in to comment.