From cd6ed559da0b59276e7e70f170f3137bbb69a71b Mon Sep 17 00:00:00 2001 From: Albert Iordache Date: Sat, 26 May 2012 17:03:18 +0300 Subject: [PATCH 01/11] Removed the birdmen from the .dme, due to runtimes crashing the server --- baystation12.dme | 2 -- 1 file changed, 2 deletions(-) diff --git a/baystation12.dme b/baystation12.dme index 43e4dfcc446..3b2e3409f43 100644 --- a/baystation12.dme +++ b/baystation12.dme @@ -1153,8 +1153,6 @@ #include "code\WorkInProgress\AI_Visibility\util.dm" #include "code\WorkInProgress\animusstation\atm.dm" #include "code\WorkInProgress\Cael_Aislinn\power_monitor.dm" -#include "code\WorkInProgress\Cael_Aislinn\BirdMan\bird_transformation.dm" -#include "code\WorkInProgress\Cael_Aislinn\BirdMan\birdman.dm" #include "code\WorkInProgress\Cael_Aislinn\Rust\core_field.dm" #include "code\WorkInProgress\Cael_Aislinn\Rust\core_gen.dm" #include "code\WorkInProgress\Cael_Aislinn\Rust\core_monitor.dm" From dea3a519cc4879baab9aaf44037e3ac2e2424110 Mon Sep 17 00:00:00 2001 From: Erthilo Date: Sat, 26 May 2012 21:54:20 +0100 Subject: [PATCH 02/11] Traitor objective picking error fix, thanks to @thvortex. Original Message: Hopefully fixes #58 Traitor objective errors I think the issue is in /datum/objective/steal/reagent not having a "weight = " like any of the other steal objectives. GenerateTheft() will use the "weight" var and not the "get_weight" proc when building its list, but the default weight defined in /datum/objective is INFINITY. PickObjectiveFromList() will then call pickweight() which does a sum of all weights stored in the list followed by <= comparisons of the total. Perhaps the total integer var wraps around into negative values. I have no idea if INFINITY is actually MAXINT, or either of the positive or negative floating point infinities. --- code/game/gamemodes/newobjective.dm | 1 + 1 file changed, 1 insertion(+) diff --git a/code/game/gamemodes/newobjective.dm b/code/game/gamemodes/newobjective.dm index de5514ddd89..66e71c124a2 100644 --- a/code/game/gamemodes/newobjective.dm +++ b/code/game/gamemodes/newobjective.dm @@ -1086,6 +1086,7 @@ datum reagent + weight = 20 var/target_name New(var/text,var/joba) ..() From 2f303de9b55d5411461116fe4462b72ec2b7f811 Mon Sep 17 00:00:00 2001 From: Erthilo Date: Sat, 26 May 2012 23:58:13 +0100 Subject: [PATCH 03/11] New portalathe sprite, thanks to dezzmont and Furlucis. --- code/WorkInProgress/SkyMarshal/portalathe.dm | 7 ++++--- icons/obj/janitor.dmi | Bin 851 -> 1310 bytes 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/code/WorkInProgress/SkyMarshal/portalathe.dm b/code/WorkInProgress/SkyMarshal/portalathe.dm index bbd27df919d..083ce09a192 100644 --- a/code/WorkInProgress/SkyMarshal/portalathe.dm +++ b/code/WorkInProgress/SkyMarshal/portalathe.dm @@ -1,8 +1,9 @@ //May expand later, but right now it just repairs lights. /obj/item/device/portalathe - name = "\improper Portable Autolathe" - desc = "It blinks and has an antenna on it. It must be advanced." - icon_state = "t-ray0" + name = "portable autolathe" + desc = "A device which can repair broken lights instantly. Must be advanced." + icon = 'janitor.dmi' + icon_state = "portalathe" afterattack(var/atom/target, mob/user as mob) if(!target || !user) diff --git a/icons/obj/janitor.dmi b/icons/obj/janitor.dmi index cc38ead24c838de617663fccf97f866d27881f0e..61665fe8a65574a882b2d7e17d43f6d17a313c35 100644 GIT binary patch delta 1144 zcmV-;1c&?62A&EyiBL{Q4GJ0x0000DNk~Le0001h0001B2m=5B0OF*IdjJ3cv`|b` zMZmzoUteF?+1r0j0)>Z*kuOMpHDAV6eA;xE>mD8+wzjsPpP!SHlRP{;A0Hn~OiaIo z6{vI*1qB5)H8n0SE&%`k0Q3L=0RP+G0?cMJ>gwwM|NqJW0L+;)Ha0drJw2Ib0KmY& z3?*IS*0d!JMQvg8b*k%9#0Hu0VSad{Xb7OL8aCB*rz;b_;prV5O zqLRd%#F7jgN=<>HsX2+2AYlU?LkKkBQdV&Fa{&h}01|U!p}<;UAOHXZXGugsRA_`4iLa# zp#B_MAh_p4fIu>Ln| z0GtF3Ajt-%)5&Bq9wPws`_lk34q!f)^SL_!{QZYIf5ri*e0Kn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OY`{L_oY(#*< Date: Sat, 26 May 2012 23:58:54 +0100 Subject: [PATCH 04/11] Fixed misnamed CE RIG helmet sprite. --- icons/mob/head.dmi | Bin 110863 -> 110866 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/icons/mob/head.dmi b/icons/mob/head.dmi index 60ba5259430cbbb2a3f50f5e30e1f1196a79ccc4..2f077b367e8b62fae8add98a4583579a6de170b7 100644 GIT binary patch delta 1558 zcmV+x2I={a;s%o929P8H|B)pmf2Qcgmtun=K$AX#FrvoNL=>r#)H>d$??L_}Z>;4< z*{{EB*Qey$yEPstXUb*}}S22ag|1(e(f0ewVaoJLA zRId~Z2^BRPcBJP7SB(w6w;|hQ`NxOH{NcVi=IdFU)wVt&qrbqIv}ZLq37GU5#-zWI zkzgI9d}0A%+m(Kh_+C4MxTI$Vt9n-8`YK@)!~+AK(s6MI91e$^3g46BsFd$Xaa>GM zkLjI3V0=eYiK4)phIO~8e;u=l5BHAIGFO|5T)W8MrXtrSJGG8X4SbJ#RtudKTIwdg zLEo_bDaZNGc+QhumwHHE-ck?gi(6_^$vdaiq|!G{sY$iVj>g1vq1$B(dbV8XwBvaA zn=@SKa@on8+AehLmd@2Jo-3PL7EYB-ElX$0rWQ_)2UAviR70+6C~S)( zYi$qlF2OAiJIE6q}qw-Gbjnx&(A(v!O4MqWzw_Z^nf1kAVih3ZpTP=zk*6|zY zipFL4nnH0i&Iky^WqT;?5yXIri$ikF5d%72WGXTg?{$qFFg{K7z?D@eLIMlG4(NlI?2tD2;2Sb6RrV0iVqD8>NE@)ZSk z7wbw)J-=mF+S-1`W>$XQDBVqb4jno1@!&XOKoPMqV!p-oP8_i7tN^>s3b4x*^~n7^ zVn{VYy(Te5V{LqhH#8DoY&>K;u|UK&gY%43?q?8rf1NsL;4F<8RC#*42U-gw7Zw z2uYXdnO%XT4p$UOKq;WI7ZlBFLD@43wA{F|E}n>v7$QfZVOInvx{R0iw>VZ2T8xT| z=|O72DCqO}Y1#26_8+|Oos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U|sAQ0q&MdJYoDv@_C~CxEe?DpJ74<-Hw^|f8tm8M( z8I8+sHHG40oDmR+%XU}VJ%|Al7l-7UBL;N5$W&w~-s>7UV0@bDfh((!M&c9(wh&Y0 zwE(%`i3Apa9nc3a*&%K4!8c@Ds_ZVF$4ppQc!(dM6Nx6lt1Y$h6`im%BGJ8WCmM+y zS763|B7rYIe;5OF(FbFoWX@_1;2@`PT)LHTFYo+xRXJT&Ppt$b4{arcy%+-|%V!kW zU92lH_5Cfo(AM^MZ0^e6H%fOCpF>AZd^|Xg7*Is4jF@k6y#ojAIxE0#vjXfgMLlvq zj~G&oP_Ic$(O4TF;suSw7aI@RPAm|y&EPyEmHQDye_p3{8aPWM234NkZh_Xq$i)R~ z$86Ahe+q+_X;D%IR74XtF8rMh&};b42I(|(92|0R4jhp4aDevEfkWbs=#Jt!#DN2j zCfU~K^ zFuN3+f6)a#q=^sID4#K~JZWL`dBaNj8hP5+$l;aswksXG_^(QiAX3%)FgWONolz*| zRThXT2M*~1yYBw4U#_sn_+09-#Dt3aGmFH&dhkHxs|Sx{HLkYM^?4!_M2oGKz6aV+ zKUe^_w5Cc3DWXp#H1evnt}Ys6$Okl`Z`Kc8f8PQ<{A+`R-dUoH9CuNQEmRi|4e`uo z6hhJ^dSO=}slypX5>N`L>WwD)OY3@wI8Hv)QhIA90b}o1&F1f4lpBZqsq`{m@F$QSd{Rx@4E8vkj58zO+Ct zDeDWWGzqX`Qy9sQ{y+bRkkIW)X?6XZvMFt+^yXG_XDhu?mC^)E>gJ{Nvyz%wY3X!g zF72ewlf?75`1|bh*Qf01%k%Odrt2S18IzxJ001BWNkl Date: Sat, 26 May 2012 23:59:31 +0100 Subject: [PATCH 05/11] Fixes PDA light not turning off when exploded by a detomax. --- code/game/objects/devices/PDA/PDA.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/objects/devices/PDA/PDA.dm b/code/game/objects/devices/PDA/PDA.dm index 1293cfce2b1..82b5235c2c4 100755 --- a/code/game/objects/devices/PDA/PDA.dm +++ b/code/game/objects/devices/PDA/PDA.dm @@ -905,7 +905,10 @@ if (ismob(loc)) var/mob/M = loc M.show_message("\red Your [src] explodes!", 1) - + if (src in M.contents) + if(fon) + fon = 0 + M.total_luminosity -= f_lum if(T) T.hotspot_expose(700,125) From c7a910942cca71ea75b4fab582eda01d34eedd5a Mon Sep 17 00:00:00 2001 From: Erthilo Date: Sun, 27 May 2012 00:01:17 +0100 Subject: [PATCH 06/11] Fixes food not disappearing from hands when finished. --- code/modules/chemical/Chemistry-Tools.dm | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/code/modules/chemical/Chemistry-Tools.dm b/code/modules/chemical/Chemistry-Tools.dm index a3bcaabcc38..5135238bab6 100644 --- a/code/modules/chemical/Chemistry-Tools.dm +++ b/code/modules/chemical/Chemistry-Tools.dm @@ -1580,9 +1580,9 @@ if(!reagents.total_volume) if(M == user) user << "\red You finish eating [src]." else user << "\red [M] finishes eating [src]." + del(src) spawn(5) user.update_clothing() - del(src) playsound(M.loc,'eatfood.ogg', rand(10,50), 1) return 1 else if(istype(M, /mob/living/simple_animal/livestock)) @@ -1979,14 +1979,7 @@ attackby(var/obj/D, mob/user as mob) if(isprox(D)) - var/obj/item/weapon/bucket_sensor/B = new /obj/item/weapon/bucket_sensor - B.loc = user - if (user.r_hand == D) - user.u_equip(D) - user.r_hand = B - else - user.u_equip(D) - user.l_hand = B + var/obj/item/weapon/bucket_sensor/B = new /obj/item/weapon/bucket_sensor(user.loc) B.layer = 20 user << "You add the sensor to the bucket" del(D) From 428e48ed70b01932cb2da796505ca1487fb095b7 Mon Sep 17 00:00:00 2001 From: Albert Iordache Date: Sun, 27 May 2012 08:18:12 +0300 Subject: [PATCH 07/11] Updated changelog. --- html/changelog.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/html/changelog.html b/html/changelog.html index ec5d41f73d2..48775b18fe9 100644 --- a/html/changelog.html +++ b/html/changelog.html @@ -56,6 +56,17 @@ Stuff which is in development and not yet visible to players or just code relate should be listed in the changelog upon commit though. Thanks. --> +
+

27 May 2012

+

Erthilo updated:

+
    +
  • Fixed PDA light not turning off when exploded by a detomax.
  • +
  • Fixes food not disappearing from hands when finished.
  • +
  • Fixed the bug where traitors would get an empty objectives list. Credit: thvortex.
  • +
  • New portalathe sprite, thanks to dezzmont and Furlucis.
  • +
+
+

26 May 2012

Erthilo updated:

From 922a7cc509903d0bf0e4d6978f0b8b7b8c5aec45 Mon Sep 17 00:00:00 2001 From: Albert Iordache Date: Sun, 27 May 2012 08:42:35 +0300 Subject: [PATCH 08/11] Fixed an ATM bug --- code/defines/obj/weapon.dm | 2 ++ html/changelog.html | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/code/defines/obj/weapon.dm b/code/defines/obj/weapon.dm index 9b70e7f0f77..c143fc109aa 100644 --- a/code/defines/obj/weapon.dm +++ b/code/defines/obj/weapon.dm @@ -208,11 +208,13 @@ icon_state = "spacecash20" access = access_crate_cash desc = "A pile of 20 credits." + worth = 20 /obj/item/weapon/money/c50 icon_state = "spacecash50" access = access_crate_cash desc = "A pile of 50 credits." + worth = 50 /obj/item/weapon/money/c100 icon_state = "spacecash100" diff --git a/html/changelog.html b/html/changelog.html index 48775b18fe9..668176c0552 100644 --- a/html/changelog.html +++ b/html/changelog.html @@ -58,7 +58,11 @@ should be listed in the changelog upon commit though. Thanks. -->

27 May 2012

-

Erthilo updated:

+

Abi79 updated:

+
    +
  • Money withdrawn from the ATM will now be worth the proper value.
  • +
+

Erthilo updated:

  • Fixed PDA light not turning off when exploded by a detomax.
  • Fixes food not disappearing from hands when finished.
  • From eaab0d5f84854e90b5226a8334d4471aa00d1c3a Mon Sep 17 00:00:00 2001 From: Albert Iordache Date: Sun, 27 May 2012 09:01:38 +0300 Subject: [PATCH 09/11] Added a var to a obj/effect/decal/cleanable/crayon storing the client who drew it --- code/game/objects/toys.dm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/game/objects/toys.dm b/code/game/objects/toys.dm index 02ffbd272d6..4cf697d8746 100644 --- a/code/game/objects/toys.dm +++ b/code/game/objects/toys.dm @@ -140,7 +140,7 @@ CRAYONS user << "You start drawing a rune on the [target.name]." if(instant || do_after(user, 50)) if(user.equipped() == src) - new /obj/effect/decal/cleanable/crayon(target,colour,shadeColour,drawtype) + new /obj/effect/decal/cleanable/crayon(user.client,target,colour,shadeColour,drawtype) user << "You finish drawing." if(uses) uses-- @@ -175,6 +175,7 @@ CRAYONS icon = 'rune.dmi' layer = 2.1 anchored = 1 + var/client/who_drew_this examine() @@ -183,9 +184,10 @@ CRAYONS return - New(location,main = "#FFFFFF",shade = "#000000",var/type = "rune") + New(who,location,main = "#FFFFFF",shade = "#000000",var/type = "rune") ..() loc = location + who_drew_this = who name = type desc = "A [type] drawn in crayon." From ac869217457c49bb3760d675df720cf36d98202c Mon Sep 17 00:00:00 2001 From: Albert Iordache Date: Sun, 27 May 2012 14:07:43 +0300 Subject: [PATCH 10/11] Minor optimizations of update_clothing, removal of the ONESIZEFITSALL flag --- code/game/gamemodes/cult/cult_items.dm | 4 +- code/modules/clothing/jumpsuit.dm | 2 +- .../clothing/spacesuits/miscellaneous.dm | 2 +- code/modules/clothing/suit.dm | 2 +- code/modules/clothing/suits/armor.dm | 8 +- code/modules/clothing/suits/detective.dm | 2 +- code/modules/clothing/suits/heavy.dm | 2 +- code/modules/clothing/uniforms/lawyer.dm | 2 +- code/modules/mob/living/carbon/human/human.dm | 94 +++++-------------- code/modules/mob/living/carbon/human/life.dm | 37 ++++---- code/setup.dm | 2 +- 11 files changed, 55 insertions(+), 102 deletions(-) diff --git a/code/game/gamemodes/cult/cult_items.dm b/code/game/gamemodes/cult/cult_items.dm index 8d626ed3a2a..1647eb7047f 100644 --- a/code/game/gamemodes/cult/cult_items.dm +++ b/code/game/gamemodes/cult/cult_items.dm @@ -23,7 +23,7 @@ desc = "A set of armored robes worn by the followers of Nar-Sie" icon_state = "cultrobes" item_state = "cultrobes" - flags = FPRINT | TABLEPASS | ONESIZEFITSALL + flags = FPRINT | TABLEPASS body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS allowed = list(/obj/item/weapon/tome,/obj/item/weapon/melee/cultblade) armor = list(melee = 50, bullet = 30, laser = 50,energy = 20, bomb = 25, bio = 10, rad = 0) @@ -43,7 +43,7 @@ desc = "A set of armored robes worn by the followers of Nar-Sie" icon_state = "magusred" item_state = "magusred" - flags = FPRINT | TABLEPASS | ONESIZEFITSALL + flags = FPRINT | TABLEPASS body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS allowed = list(/obj/item/weapon/tome,/obj/item/weapon/melee/cultblade) armor = list(melee = 50, bullet = 30, laser = 50,energy = 20, bomb = 25, bio = 10, rad = 0) diff --git a/code/modules/clothing/jumpsuit.dm b/code/modules/clothing/jumpsuit.dm index afefffb0a4d..52cd992c82a 100644 --- a/code/modules/clothing/jumpsuit.dm +++ b/code/modules/clothing/jumpsuit.dm @@ -7,7 +7,7 @@ protective_temperature = T0C + 50 heat_transfer_coefficient = 0.30 permeability_coefficient = 0.90 - flags = FPRINT | TABLEPASS | ONESIZEFITSALL + flags = FPRINT | TABLEPASS var/has_sensor = 1//For the crew computer 2 = unable to change mode var/sensor_mode = 0 /* diff --git a/code/modules/clothing/spacesuits/miscellaneous.dm b/code/modules/clothing/spacesuits/miscellaneous.dm index 7c3a2e678ab..487e076c9a1 100644 --- a/code/modules/clothing/spacesuits/miscellaneous.dm +++ b/code/modules/clothing/spacesuits/miscellaneous.dm @@ -27,7 +27,7 @@ icon_state = "santa" item_state = "santa" slowdown = 0 - flags = FPRINT | TABLEPASS | ONESIZEFITSALL | SUITSPACE + flags = FPRINT | TABLEPASS | SUITSPACE allowed = list(/obj/item) //for stuffing exta special presents diff --git a/code/modules/clothing/suit.dm b/code/modules/clothing/suit.dm index b312d4e6bd3..55f1cbaaa84 100644 --- a/code/modules/clothing/suit.dm +++ b/code/modules/clothing/suit.dm @@ -2,6 +2,6 @@ icon = 'suits.dmi' name = "suit" var/fire_resist = T0C+100 - flags = FPRINT | TABLEPASS | ONESIZEFITSALL + flags = FPRINT | TABLEPASS var/list/allowed = list(/obj/item/weapon/tank/emergency_oxygen) armor = list(melee = 0, bullet = 0, laser = 0,energy = 0, bomb = 0, bio = 0, rad = 0) diff --git a/code/modules/clothing/suits/armor.dm b/code/modules/clothing/suits/armor.dm index 75a8fbfa406..dae33f4a011 100644 --- a/code/modules/clothing/suits/armor.dm +++ b/code/modules/clothing/suits/armor.dm @@ -10,7 +10,7 @@ desc = "An armored vest that protects against some damage." icon_state = "armor" item_state = "armor" - flags = FPRINT | TABLEPASS | ONESIZEFITSALL + flags = FPRINT | TABLEPASS armor = list(melee = 50, bullet = 15, laser = 50, energy = 10, bomb = 25, bio = 0, rad = 0) /obj/item/clothing/suit/armor/vest/warden @@ -51,7 +51,7 @@ icon_state = "gearharness" item_state = "gearharness" body_parts_covered = UPPER_TORSO|LOWER_TORSO - flags = FPRINT | TABLEPASS | ONESIZEFITSALL + flags = FPRINT | TABLEPASS allowed = list(/obj/item/weapon/gun/energy,/obj/item/weapon/pepperspray,/obj/item/weapon/gun/projectile,/obj/item/ammo_magazine,/obj/item/ammo_casing,/obj/item/weapon/melee/baton,/obj/item/weapon/handcuffs,/obj/item/taperoll/police) flags_inv = 0 @@ -62,7 +62,7 @@ icon_state = "reactiveoff" item_state = "reactiveoff" slowdown = 1 - flags = FPRINT | TABLEPASS | ONESIZEFITSALL + flags = FPRINT | TABLEPASS armor = list(melee = 0, bullet = 0, laser = 0, energy = 0, bomb = 0, bio = 0, rad = 0) /obj/item/clothing/suit/storage/armourrigvest @@ -71,7 +71,7 @@ icon_state = "armourrigvest" item_state = "armourrigvest" body_parts_covered = UPPER_TORSO|LOWER_TORSO - flags = FPRINT | TABLEPASS | ONESIZEFITSALL + flags = FPRINT | TABLEPASS allowed = list(/obj/item/weapon/gun/energy,/obj/item/weapon/pepperspray,/obj/item/weapon/gun/projectile,/obj/item/ammo_magazine,/obj/item/ammo_casing,/obj/item/weapon/melee/baton,/obj/item/weapon/handcuffs,/obj/item/taperoll/police) armor = list(melee = 50, bullet = 15, laser = 50, energy = 10, bomb = 25, bio = 0, rad = 0) diff --git a/code/modules/clothing/suits/detective.dm b/code/modules/clothing/suits/detective.dm index 7b07ce3a8d0..269bf437af1 100644 --- a/code/modules/clothing/suits/detective.dm +++ b/code/modules/clothing/suits/detective.dm @@ -21,7 +21,7 @@ desc = "An armored vest with a detective's badge on it." icon_state = "detective-armor" item_state = "armor" - flags = FPRINT | TABLEPASS | ONESIZEFITSALL + flags = FPRINT | TABLEPASS body_parts_covered = UPPER_TORSO|LOWER_TORSO allowed = list(/obj/item/weapon/gun/energy,/obj/item/weapon/gun/projectile,/obj/item/ammo_magazine,/obj/item/ammo_casing,/obj/item/weapon/melee/baton,/obj/item/weapon/handcuffs,/obj/item/taperoll/police) armor = list(melee = 50, bullet = 15, laser = 50, energy = 10, bomb = 25, bio = 0, rad = 0) diff --git a/code/modules/clothing/suits/heavy.dm b/code/modules/clothing/suits/heavy.dm index c05940bf6ab..0a97bfaa5fc 100644 --- a/code/modules/clothing/suits/heavy.dm +++ b/code/modules/clothing/suits/heavy.dm @@ -74,7 +74,7 @@ icon_state = "invisible" item_state = "invisible" body_parts_covered = UPPER_TORSO|LOWER_TORSO - flags = FPRINT | TABLEPASS | ONESIZEFITSALL + flags = FPRINT | TABLEPASS allowed = list(/obj/item/weapon/gun/energy,/obj/item/weapon/pepperspray,/obj/item/weapon/gun/projectile,/obj/item/ammo_magazine,/obj/item/ammo_casing,/obj/item/weapon/melee/baton,/obj/item/weapon/handcuffs,/obj/item/taperoll/police) armor = list(melee = 50, bullet = 15, laser = 50, energy = 10, bomb = 25, bio = 0, rad = 0) flags_inv = 0 diff --git a/code/modules/clothing/uniforms/lawyer.dm b/code/modules/clothing/uniforms/lawyer.dm index 5bce12301ab..95592729258 100644 --- a/code/modules/clothing/uniforms/lawyer.dm +++ b/code/modules/clothing/uniforms/lawyer.dm @@ -60,6 +60,6 @@ desc = "This robe commands authority." icon_state = "judge" item_state = "judge" - flags = FPRINT | TABLEPASS | ONESIZEFITSALL + flags = FPRINT | TABLEPASS body_parts_covered = UPPER_TORSO|LOWER_TORSO|LEGS|ARMS allowed = list(/obj/item/weapon/cigpacket,/obj/item/weapon/money) diff --git a/code/modules/mob/living/carbon/human/human.dm b/code/modules/mob/living/carbon/human/human.dm index df52c824503..59fbac4e145 100644 --- a/code/modules/mob/living/carbon/human/human.dm +++ b/code/modules/mob/living/carbon/human/human.dm @@ -228,11 +228,6 @@ Metroid.UpdateFeed() return - /*if(istype(tmob, /mob/living/carbon/human) && tmob.mutations & FAT) - if(prob(40) && !(mutations & FAT)) - src << "\red You fail to push [tmob]'s fat ass out of the way." - now_pushing = 0 - return*/ if(tmob.r_hand && istype(tmob.r_hand, /obj/item/weapon/shield/riot)) if(prob(99)) now_pushing = 0 @@ -297,8 +292,6 @@ if(shoes) tally += shoes.slowdown - /*if(mutations & FAT) - tally += 1.5*/ if(bodytemperature < 283.222) tally += (283.222 - bodytemperature) / 10 * 1.75 if (stuttering < 10) @@ -587,9 +580,6 @@ return if (!( istype(W, /obj/item/clothing/suit) )) return - /*if (mutations & FAT && !(W.flags & ONESIZEFITSALL)) - src << "\red You're too fat to wear the [W.name]!" - return*/ u_equip(W) wear_suit = W W.equipped(src, text) @@ -695,9 +685,6 @@ return if (!( istype(W, /obj/item/clothing/under) )) return - /*if (mutations & FAT && !(W.flags & ONESIZEFITSALL)) - src << "\red You're too fat to wear the [W.name]!" - return*/ u_equip(W) w_uniform = W W.equipped(src, text) @@ -861,19 +848,14 @@ overlays = null - // lol - var/fat = "" - if (mutations & FAT) - fat = "fat" - if (mutations & HULK) - overlays += image("icon" = 'genetics.dmi', "icon_state" = "hulk[fat]_[gender][!lying ? "_s" : "_l"]") + overlays += image("icon" = 'genetics.dmi', "icon_state" = "hulk_[gender][!lying ? "_s" : "_l"]") if (mutations & COLD_RESISTANCE) - overlays += image("icon" = 'genetics.dmi', "icon_state" = "fire[fat][!lying ? "_s" : "_l"]") + overlays += image("icon" = 'genetics.dmi', "icon_state" = "fire[!lying ? "_s" : "_l"]") if (mutations & TK) - overlays += image("icon" = 'genetics.dmi', "icon_state" = "telekinesishead[fat][!lying ? "_s" : "_l"]") + overlays += image("icon" = 'genetics.dmi', "icon_state" = "telekinesishead[!lying ? "_s" : "_l"]") if (mutations & LASER) overlays += image("icon" = 'genetics.dmi', "icon_state" = "lasereyes[!lying ? "_s" : "_l"]") @@ -881,7 +863,7 @@ if (mutantrace) switch(mutantrace) if("golem","metroid") - overlays += image("icon" = 'genetics.dmi', "icon_state" = "[mutantrace][fat][!lying ? "_s" : "_l"]") + overlays += image("icon" = 'genetics.dmi', "icon_state" = "[mutantrace][!lying ? "_s" : "_l"]") if(face_standing) del(face_standing) if(face_lying) @@ -891,7 +873,7 @@ if(lying_icon) del(lying_icon) if("lizard") - overlays += image("icon" = 'genetics.dmi', "icon_state" = "[mutantrace][fat]_[gender][!lying ? "_s" : "_l"]") + overlays += image("icon" = 'genetics.dmi', "icon_state" = "[mutantrace]_[gender][!lying ? "_s" : "_l"]") if(face_standing) del(face_standing) if(face_lying) @@ -902,7 +884,7 @@ del(lying_icon) if("plant") if(stat != 2) //if not dead, that is - overlays += image("icon" = 'genetics.dmi', "icon_state" = "[mutantrace][fat]_[gender][!lying ? "_s" : "_l"]") + overlays += image("icon" = 'genetics.dmi', "icon_state" = "[mutantrace]_[gender][!lying ? "_s" : "_l"]") else overlays += image("icon" = 'genetics.dmi', "icon_state" = "[mutantrace]_d") if(face_standing) @@ -925,20 +907,6 @@ else lying = 1 - // Automatically drop anything in store / id / belt if you're not wearing a uniform. - if (!w_uniform) - for (var/obj/item/thing in list(r_store, l_store, wear_id, belt)) - if (thing) - u_equip(thing) - if (client) - client.screen -= thing - - if (thing) - thing.loc = loc - thing.dropped(src) - thing.layer = initial(thing.layer) - - //if (zone_sel) // zone_sel.overlays = null // zone_sel.overlays += body_standing @@ -961,30 +929,28 @@ // Uniform if(w_uniform) - /*if (mutations & FAT && !(w_uniform.flags & ONESIZEFITSALL)) - src << "\red You burst out of the [w_uniform.name]!" - var/obj/item/clothing/c = w_uniform - u_equip(c) - if(client) - client.screen -= c - if(c) - c:loc = loc - c:dropped(src) - c:layer = initial(c:layer)*/ - if(w_uniform)//I should really not need these - w_uniform.screen_loc = ui_iclothing + w_uniform.screen_loc = ui_iclothing + if(istype(w_uniform, /obj/item/clothing/under)) var/t1 = w_uniform.color if (!t1) t1 = icon_state - if (mutations & FAT) - overlays += image("icon" = 'uniform_fat.dmi', "icon_state" = "[t1][!lying ? "_s" : "_l"]", "layer" = MOB_LAYER) - else - overlays += image("icon" = 'uniform.dmi', "icon_state" = text("[][]",t1, (!(lying) ? "_s" : "_l")), "layer" = MOB_LAYER) + overlays += image("icon" = 'uniform.dmi', "icon_state" = text("[][]",t1, (!(lying) ? "_s" : "_l")), "layer" = MOB_LAYER) if (w_uniform.blood_DNA) var/icon/stain_icon = icon('blood.dmi', "uniformblood[!lying ? "" : "2"]") overlays += image("icon" = stain_icon, "layer" = MOB_LAYER) + else // Automatically drop anything in store / id / belt if you're not wearing a uniform. + for (var/obj/item/thing in list(r_store, l_store, wear_id, belt)) + if (thing) + u_equip(thing) + if (client) + client.screen -= thing + if (thing) + thing.loc = loc + thing.dropped(src) + thing.layer = initial(thing.layer) + if (wear_id) if(wear_id.over_jumpsuit) overlays += image("icon" = 'mob.dmi', "icon_state" = "id[!lying ? null : "2"]", "layer" = MOB_LAYER) @@ -1025,10 +991,12 @@ else if(ro.destroyed) stain_icon.Blend(new /icon('limb_mask.dmi', "left_[lying?"l":"s"]"), ICON_MULTIPLY) overlays += image("icon" = stain_icon, "layer" = MOB_LAYER) + // Glasses if (glasses) var/t1 = glasses.icon_state overlays += image("icon" = 'eyes.dmi', "icon_state" = text("[][]", t1, (!( lying ) ? null : "2")), "layer" = MOB_LAYER) + // Ears if (l_ear) var/t1 = l_ear.icon_state @@ -1036,6 +1004,7 @@ if (r_ear) var/t1 = r_ear.icon_state overlays += image("icon" = 'ears.dmi', "icon_state" = text("[][]", t1, (!( lying ) ? null : "2")), "layer" = MOB_LAYER) + // Shoes lo = organs["l_foot"] ro = organs["r_foot"] @@ -1054,6 +1023,7 @@ else if(ro.destroyed) stain_icon.Blend(new /icon('limb_mask.dmi', "left_[lying?"l":"s"]"), ICON_MULTIPLY) overlays += image("icon" = stain_icon, "layer" = MOB_LAYER) // Radio + /* if (w_radio) overlays += image("icon" = 'ears.dmi', "icon_state" = "headset[!lying ? "" : "2"]", "layer" = MOB_LAYER) */ @@ -1087,19 +1057,10 @@ if (wear_suit) - /*if (mutations & FAT && !(wear_suit.flags & ONESIZEFITSALL)) - src << "\red You burst out of the [wear_suit.name]!" - var/obj/item/clothing/c = wear_suit - u_equip(c) - if(client) - client.screen -= c - if(c) - c:loc = loc - c:dropped(src) - c:layer = initial(c:layer)*/ if (istype(wear_suit, /obj/item/clothing/suit)) var/t1 = wear_suit.icon_state overlays += image("icon" = 'suit.dmi', "icon_state" = text("[][]", t1, (!( lying ) ? null : "2")), "layer" = MOB_LAYER) + if (wear_suit) if (wear_suit.blood_DNA) var/icon/stain_icon = null @@ -1111,6 +1072,7 @@ stain_icon = icon('blood.dmi', "suitblood[!lying ? "" : "2"]") overlays += image("icon" = stain_icon, "layer" = MOB_LAYER) wear_suit.screen_loc = ui_oclothing + if (istype(wear_suit, /obj/item/clothing/suit/straight_jacket)) if (handcuffed) handcuffed.loc = loc @@ -1376,7 +1338,6 @@ lying_icon = new /icon('human.dmi', "torso_[g]_l") var/husk = (mutations & HUSK) - var/obese = (mutations & FAT) stand_icon.Blend(new /icon('human.dmi', "chest_[g]_s"), ICON_OVERLAY) lying_icon.Blend(new /icon('human.dmi', "chest_[g]_l"), ICON_OVERLAY) @@ -1417,9 +1378,6 @@ stand_icon.Blend(husk_s, ICON_OVERLAY) lying_icon.Blend(husk_l, ICON_OVERLAY) - else if(obese) - stand_icon.Blend(new /icon('human.dmi', "fatbody_s"), ICON_OVERLAY) - lying_icon.Blend(new /icon('human.dmi', "fatbody_l"), ICON_OVERLAY) // Skin tone if (s_tone >= 0) diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index b30bc302ceb..4e705911348 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -1098,16 +1098,16 @@ else seer = 0 see_invisible = 0 + else if (istype(wear_mask, /obj/item/clothing/mask/gas/voice/space_ninja)) switch(wear_mask:mode) if(0) - if(client) - var/target_list[] = list() - for(var/mob/living/target in oview(src)) - if( target.mind&&(target.mind.special_role||issilicon(target)) )//They need to have a mind. - target_list += target - if(target_list.len)//Everything else is handled by the ninja mask proc. - wear_mask:assess_targets(target_list, src) + var/target_list[] = list() + for(var/mob/living/target in oview(src)) + if( target.mind&&(target.mind.special_role||issilicon(target)) )//They need to have a mind. + target_list += target + if(target_list.len)//Everything else is handled by the ninja mask proc. + wear_mask:assess_targets(target_list, src) if (!druggy) see_invisible = 0 if(1) @@ -1122,6 +1122,7 @@ sight |= SEE_TURFS if(!druggy) see_invisible = 0 + else if(istype(glasses, /obj/item/clothing/glasses/meson)) sight |= SEE_TURFS if(!druggy) @@ -1131,10 +1132,12 @@ see_in_dark = 5 if(!druggy) see_invisible = 0 + else if(istype(glasses, /obj/item/clothing/glasses/thermal)) sight |= SEE_MOBS if(!druggy) see_invisible = 2 + else if(istype(glasses, /obj/item/clothing/glasses/material)) sight |= SEE_OBJS if (!druggy) @@ -1165,11 +1168,6 @@ see_invisible = 0 - - - - - else if(istype(head, /obj/item/clothing/head/helmet/welding)) // wat. This is never fucking called. if(!head:up && tinted_weldhelh) see_in_dark = 1 @@ -1183,23 +1181,20 @@ // Special on-map HUDs like the medical HUD // ---------------------------------------- if(istype(glasses, /obj/item/clothing/glasses/hud/health)) - if(client) - glasses:process_hud(src) + glasses:process_hud(src) if (!druggy) see_invisible = 0 - if(istype(glasses, /obj/item/clothing/glasses/hud/security)) - if(client) - glasses:process_hud(src) + else if(istype(glasses, /obj/item/clothing/glasses/hud/security)) + glasses:process_hud(src) if (!druggy) see_invisible = 0 - if(istype(glasses, /obj/item/clothing/glasses/sunglasses)) + else if(istype(glasses, /obj/item/clothing/glasses/sunglasses)) see_in_dark = 1 if(istype(glasses, /obj/item/clothing/glasses/sunglasses/sechud)) - if(client) - if(glasses:hud) - glasses:hud:process_hud(src) + if(glasses:hud) + glasses:hud:process_hud(src) if (!druggy) see_invisible = 0 diff --git a/code/setup.dm b/code/setup.dm index 05e8e837728..0ca27c18958 100644 --- a/code/setup.dm +++ b/code/setup.dm @@ -132,7 +132,7 @@ var/MAX_EXPLOSION_RANGE = 14 #define OPENCONTAINER 4096 // is an open container for chemistry purposes -#define ONESIZEFITSALL 8192 // can be worn by fatties (or children? ugh) +// #define ONESIZEFITSALL 8192 // can be worn by fatties (or children? ugh) #define NOREACT 16384 //Reagents dont' react inside this container. From 23c97901d85b5d75c31d6ac88e3669cab81962f6 Mon Sep 17 00:00:00 2001 From: cib Date: Sun, 27 May 2012 16:43:39 +0200 Subject: [PATCH 11/11] update_clothing() needs only be called by drop_item() if something was actually dropped. --- code/modules/mob/mob.dm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/code/modules/mob/mob.dm b/code/modules/mob/mob.dm index 36e3cee295d..13e461c7569 100644 --- a/code/modules/mob/mob.dm +++ b/code/modules/mob/mob.dm @@ -96,8 +96,6 @@ return 0 /mob/proc/Life() -// if(organStructure) -// organStructure.ProcessOrgans() return /mob/proc/update_clothing() @@ -172,7 +170,7 @@ var/turf/T = get_turf(loc) if (istype(T)) T.Entered(W) - update_clothing() + update_clothing() return /mob/proc/before_take_item(var/obj/item/item)