diff --git a/.gitignore b/.gitignore index f2ce0fe4b8..c824a920cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ #ignore misc BYOND files +Thumbs.db *.log *.int *.rsc @@ -7,3 +8,4 @@ *.backup data/ cfg/ + diff --git a/code/game/gamemodes/revolution/revolution.dm b/code/game/gamemodes/revolution/revolution.dm index 88de996e71..7d2cbf1ca7 100644 --- a/code/game/gamemodes/revolution/revolution.dm +++ b/code/game/gamemodes/revolution/revolution.dm @@ -45,4 +45,4 @@ if(i < revs.head_revolutionaries.len) . += "[revmind.current.real_name]," else - . += "and [revmind.current.real_name]" \ No newline at end of file + . += "and [revmind.current.real_name]" diff --git a/code/game/mecha/combat/combat.dm b/code/game/mecha/combat/combat.dm index 870752abdd..c9c5c32623 100644 --- a/code/game/mecha/combat/combat.dm +++ b/code/game/mecha/combat/combat.dm @@ -244,15 +244,6 @@ else return 0 -/obj/mecha/combat/mmi_moved_inside(var/obj/item/device/mmi/mmi_as_oc as obj,mob/user as mob) - if(..()) - if(occupant.client) - occupant.client.mouse_pointer_icon = file("icons/mecha/mecha_mouse.dmi") - return 1 - else - return 0 - - /obj/mecha/combat/go_out() if(src.occupant && src.occupant.client) src.occupant.client.mouse_pointer_icon = initial(src.occupant.client.mouse_pointer_icon) diff --git a/code/game/mecha/mecha.dm b/code/game/mecha/mecha.dm index ddf0f2bdd6..96dda70158 100644 --- a/code/game/mecha/mecha.dm +++ b/code/game/mecha/mecha.dm @@ -686,15 +686,6 @@ /obj/mecha/attackby(obj/item/weapon/W as obj, mob/user as mob) - /* - if(istype(W, /obj/item/device/mmi)) - if(mmi_move_inside(W,user)) - user << "[src]-MMI interface initialized successfuly" - else - user << "[src]-MMI interface initialization failed." - return - */ - if(istype(W, /obj/item/mecha_parts/mecha_equipment)) var/obj/item/mecha_parts/mecha_equipment/E = W spawn() @@ -1058,65 +1049,6 @@ else return 0 -/obj/mecha/proc/mmi_move_inside(var/obj/item/device/mmi/mmi_as_oc as obj,mob/user as mob) - if(!mmi_as_oc.brainmob || !mmi_as_oc.brainmob.client) - user << "Consciousness matrix not detected." - return 0 - else if(mmi_as_oc.brainmob.stat) - user << "Beta-rhythm below acceptable level." - return 0 - else if(occupant) - user << "Occupant detected." - return 0 - else if(dna && dna!=mmi_as_oc.brainmob.dna.unique_enzymes) - user << "Stop it!" - return 0 - //Added a message here since people assume their first click failed or something./N -// user << "Installing MMI, please stand by." - - visible_message("[usr] starts to insert an MMI into [src.name]") - - if(enter_after(40,user)) - if(!occupant) - return mmi_moved_inside(mmi_as_oc,user) - else - user << "Occupant detected." - else - user << "You stop inserting the MMI." - return 0 - -/obj/mecha/proc/mmi_moved_inside(var/obj/item/device/mmi/mmi_as_oc as obj,mob/user as mob) - if(mmi_as_oc && user in range(1)) - if(!mmi_as_oc.brainmob || !mmi_as_oc.brainmob.client) - user << "Consciousness matrix not detected." - return 0 - else if(mmi_as_oc.brainmob.stat) - user << "Beta-rhythm below acceptable level." - return 0 - user.drop_from_inventory(mmi_as_oc) - var/mob/brainmob = mmi_as_oc.brainmob - brainmob.reset_view(src) - /* - brainmob.client.eye = src - brainmob.client.perspective = EYE_PERSPECTIVE - */ - occupant = brainmob - brainmob.loc = src //should allow relaymove - brainmob.canmove = 1 - mmi_as_oc.loc = src - mmi_as_oc.mecha = src - src.verbs -= /obj/mecha/verb/eject - src.Entered(mmi_as_oc) - src.Move(src.loc) - src.icon_state = src.reset_icon() - set_dir(dir_in) - src.log_message("[mmi_as_oc] moved in as pilot.") - if(!hasInternalDamage()) - src.occupant << sound('sound/mecha/nominal.ogg',volume=50) - return 1 - else - return 0 - /obj/mecha/verb/view_stats() set name = "View Stats" set category = "Exosuit Interface" diff --git a/code/modules/mob/living/carbon/human/update_icons.dm b/code/modules/mob/living/carbon/human/update_icons.dm index cd3f089230..f3fcff7108 100644 --- a/code/modules/mob/living/carbon/human/update_icons.dm +++ b/code/modules/mob/living/carbon/human/update_icons.dm @@ -646,8 +646,10 @@ var/global/list/damage_icon_parts = list() //Determine the state to use var/t_state = head.icon_state - if(head.item_state) - t_state = head.item_state + if(istype(head, /obj/item/weapon/paper)) + /* I don't like this, but bandaid to fix half the hats in the game + being completely broken without re-breaking paper hats */ + t_state = "paper" //Create the image var/image/standing = image(icon = t_icon, icon_state = t_state) diff --git a/code/modules/power/generator.dm b/code/modules/power/generator.dm index 391d4c0c61..48798c1fb5 100644 --- a/code/modules/power/generator.dm +++ b/code/modules/power/generator.dm @@ -144,6 +144,10 @@ "You [anchored ? "secure" : "unsecure"] the bolts holding [src] to the floor.", \ "You hear a ratchet") use_power = anchored + if(anchored) // Powernet connection stuff. + connect_to_network() + else + disconnect_from_network() reconnect() else ..()