mirror of
https://github.com/Aurorastation/Aurora-Old.git
synced 2026-08-24 13:16:18 +01:00
Merge pull request #236 from Aurorastation/development
Update 20AUG2014
This commit is contained in:
@@ -1763,15 +1763,15 @@
|
||||
if(gravity_is_on)
|
||||
if(!(M.stat & BROKEN))
|
||||
M.set_broken()
|
||||
log_admin("[key_name(usr)] toggled gravity on.", 1)
|
||||
message_admins("\blue [key_name_admin(usr)] toggled gravity on.", 1)
|
||||
command_alert("Gravity generators are again functioning within normal parameters, please restart your generator, Sorry for any inconvenience.")
|
||||
else
|
||||
if(M.stat & BROKEN)
|
||||
M.set_fix()
|
||||
log_admin("[key_name(usr)] toggled gravity off.", 1)
|
||||
message_admins("\blue [key_name_admin(usr)] toggled gravity off.", 1)
|
||||
command_alert("Feedback surge detected in mass-distributions systems. Artifical gravity has been disabled whilst the system reinitializes. Further failures may result in a gravitational collapse and formation of blackholes. Have a nice day.")
|
||||
else
|
||||
if(M.stat & BROKEN)
|
||||
M.set_fix()
|
||||
log_admin("[key_name(usr)] toggled gravity on.", 1)
|
||||
message_admins("\blue [key_name_admin(usr)] toggled gravity on.", 1)
|
||||
command_alert("Gravity generators are again functioning within normal parameters, please restart your generator, Sorry for any inconvenience.")
|
||||
/*
|
||||
spawn(300)
|
||||
for(var/area/A in world)
|
||||
|
||||
@@ -59,6 +59,7 @@
|
||||
else
|
||||
bst.equip_to_slot_or_del(new /obj/item/weapon/storage/box/ids(bst.back), slot_in_backpack)
|
||||
bst.equip_to_slot_or_del(new /obj/item/device/t_scanner(bst.back), slot_in_backpack)
|
||||
bst.equip_to_slot_or_del(new /obj/item/device/signaltool(bst.back), slot_in_backpack)
|
||||
|
||||
//Implant because access
|
||||
var/obj/item/weapon/implant/loyalty/L = new/obj/item/weapon/implant/loyalty(bst)
|
||||
|
||||
@@ -206,12 +206,14 @@
|
||||
if(!mob.lastarea)
|
||||
mob.lastarea = get_area(mob.loc)
|
||||
|
||||
if(mob.floating && mob.mob_has_gravity(mob.loc))
|
||||
mob.float(0)
|
||||
else if(!mob.floating && !mob.mob_has_gravity(mob.loc))
|
||||
mob.float(1)
|
||||
|
||||
if((istype(mob.loc, /turf/space)) || (mob.lastarea.has_gravity == 0))
|
||||
if(!mob.Process_Spacemove(0)) return 0
|
||||
|
||||
if(mob.floating & mob.mob_has_gravity(mob.loc))
|
||||
mob.float(0)
|
||||
|
||||
if(isobj(mob.loc) || ismob(mob.loc))//Inside an object, tell it we moved
|
||||
var/atom/O = mob.loc
|
||||
return O.relaymove(mob, direct)
|
||||
@@ -445,8 +447,6 @@
|
||||
return 0
|
||||
//If not then we can reset inertia and move
|
||||
inertia_dir = 0
|
||||
if(!floating)
|
||||
src.float(1)
|
||||
return 1
|
||||
|
||||
|
||||
|
||||
@@ -93,6 +93,10 @@
|
||||
|
||||
// attack with item, place item on conveyor
|
||||
/obj/machinery/conveyor/attackby(var/obj/item/I, mob/user)
|
||||
if(istype(I, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = I
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
if(isrobot(user)) return //Carn: fix for borgs dropping their modules on conveyor belts
|
||||
user.drop_item()
|
||||
if(I && I.loc) I.loc = src.loc
|
||||
@@ -235,6 +239,12 @@
|
||||
S.position = position
|
||||
S.update()
|
||||
|
||||
/obj/machinery/conveyor_switch/attackby(obj/item/weapon/W as obj, mob/user as mob)
|
||||
if(istype(W, /obj/item/device/signaltool))
|
||||
var/obj/item/device/signaltool/ST = W
|
||||
id = ST.change_ID(id)
|
||||
return
|
||||
|
||||
/obj/machinery/conveyor_switch/oneway
|
||||
var/convdir = 1 //Set to 1 or -1 depending on which way you want the convayor to go. (In other words keep at 1 and set the proper dir on the belts.)
|
||||
desc = "A conveyor control switch. It appears to only go in one direction."
|
||||
|
||||
Reference in New Issue
Block a user