| " - if(sample) - var/datum/reagent/blood/B = locate(/datum/reagent/blood) in sample.reagents.reagent_list - if(B) - dat += "Sample inserted." - if (B.data["antibodies"]) - dat += " | |
| " - dat += "Antibodies: [antigens2string(B.data["antibodies"])]" - dat += " | Isolate" + if(..()) return + ui_interact(user) +/obj/machinery/computer/centrifuge/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null) + user.set_machine(src) + + var/data[0] + data["antibodies"] = null + data["pathogens"] = null + data["is_antibody_sample"] = null + + if (curing) + data["busy"] = "Isolating antibodies..." + else if (isolating) + data["busy"] = "Isolating pathogens..." + else + data["sample_inserted"] = !!sample + + if (sample) + var/datum/reagent/blood/B = locate(/datum/reagent/blood) in sample.reagents.reagent_list + if (B) + data["antibodies"] = B.data["antibodies"] ? antigens2string(B.data["antibodies"]) : null + + var/list/pathogens[0] var/list/virus = B.data["virus2"] for (var/ID in virus) var/datum/disease2/disease/V = virus[ID] - dat += " |
| pathogen [V.name()]" - dat += " | Isolate" + pathogens.Add(list(list("name" = V.name(), "spread_type" = V.spreadtype, "reference" = "\ref[V]"))) + + if (pathogens.len > 0) + data["pathogens"] = pathogens + else - dat += "Please check container contents." - dat += " |
| Eject container" - else - dat = "Please insert a container." - dat += " |
|
- Code: Abi79, Aryn, Cael_Aislinn, Ccomp5950 ,Chinsky, cib, CompactNinja, DopeGhoti, Erthilo, Hawk_v3, Head, Ispil, JoeyJo0, Lexusjjss, Melonstorm, Miniature, Mloc, NerdyBoy1104, SkyMarshal, Snapshot, Spectre, Strumpetplaya, Sunfall, Tastyfish, Uristqwerty + Code: Abi79, Aryn, Cael_Aislinn, Ccomp5950, Chinsky, cib, CompactNinja, DopeGhoti, Erthilo, Hawk_v3, Head, Ispil, JoeyJo0, Lexusjjss, Melonstorm, Miniature, Mloc, NerdyBoy1104, SkyMarshal, Snapshot, Spectre, Strumpetplaya, Sunfall, Tastyfish, Uristqwerty Sprites: Apple_Master, Arcalane, Chinsky, CompactNinja, Deus Dactyl, Erthilo, Flashkirby, JoeyJo0, Miniature, Searif, Xenone, faux Sounds: Aryn Thanks To: /tg/ station, Goonstation, Animus Station, Daedalus, and original Spacestation 13 devs. Skibiliano for the IRC bot. @@ -55,6 +55,15 @@ should be listed in the changelog upon commit though. Thanks. --> + +
+
+
30 March 2014+RavingManiac updated:+
10 March 2014Chinsky updated:@@ -72,7 +81,24 @@ should be listed in the changelog upon commit though. Thanks. -->
+
@@ -84,6 +110,33 @@ should be listed in the changelog upon commit though. Thanks. -->
+1 March 2014+Various updated:+
+
+
+1 February 2014+Various updated:+
+
+
1 January 2014+Various updated:+
18 December 2013RavingManiac updated:@@ -93,6 +146,20 @@ should be listed in the changelog upon commit though. Thanks. -->
+
+
1 December 2013+Various Developers banged their keyboards together:+
24 November 2013Yinadele updated:@@ -126,6 +193,19 @@ should be listed in the changelog upon commit though. Thanks. -->
+
+
1 November 2013+Various updated:+
29 October 2013Cael_Aislinn updated:@@ -138,7 +218,7 @@ should be listed in the changelog upon commit though. Thanks. -->
- 06 Derptomber 2013+06 October 2013Chinsky updated:
Some icons by Yusuke Kamiyamane. All rights reserved. Licensed under a Creative Commons Attribution 3.0 License. |