Goonstation Forums
[Feature] Slice Open IV Drips to Pour Contents into Beakers - Printable Version

+- Goonstation Forums (https://forum.ss13.co)
+-- Forum: Discussion (https://forum.ss13.co/forumdisplay.php?fid=6)
+--- Forum: Patches (https://forum.ss13.co/forumdisplay.php?fid=30)
+---- Forum: Implemented (https://forum.ss13.co/forumdisplay.php?fid=31)
+---- Thread: [Feature] Slice Open IV Drips to Pour Contents into Beakers (/showthread.php?tid=8122)



[Feature] Slice Open IV Drips to Pour Contents into Beakers - CameronWoof - 02-02-2017

Things
1. Adds new variable to "/obj/item/reagent_containers/iv_drip", "slashed"
2. Adds new attackedby proc to "/obj/item/reagent_containers/iv_drip", which alters the "slashed" variable when attacked by a scalpel
3. Adds new attackedby proc to "/obj/item/reagent_containers/glass/beaker", which allows transferring reagents from slashed IV bags to beakers.

Other Things
1. Uses var/transferred to accurately track amounts being transferred and outputting it to chat
2. Updates the IV bag's description when it's been slashed open

I'm Bad at Github
So there's two commits. Sorry.

https://github.com/CameronWoof/Cameron-GoonStation510/pull/8/commits/1ea4c6428f80a83db0d5ba95aba22ee49bd4fa25
https://github.com/CameronWoof/Cameron-GoonStation510/pull/7/commits/de31c8c55248de1fe2d3b1855d46d18f0b87eaa4


RE: [Feature] Slice Open IV Drips to Pour Contents into Beakers - Erik - 02-02-2017

Please don't use the colon character, it's bad and can lead to runtimes


RE: [Feature] Slice Open IV Drips to Pour Contents into Beakers - CameronWoof - 02-02-2017

(02-02-2017, 11:35 AM)ErikHanson Wrote: Please don't use the colon character, it's bad and can lead to runtimes

For future reference, that character can be a colon OR a period, correct? I'd seen it both ways so I just chose one


RE: [Feature] Slice Open IV Drips to Pour Contents into Beakers - somepotato - 02-02-2017

(02-02-2017, 11:35 AM)ErikHanson Wrote: Please don't use the colon character, it's bad and can lead to runtimes

Except it'll only cause runtimes if the type is different from what is expected or you use a variable that you're not certain exists, which'll never happen when you use src.
If it compiles with . then it'll cause just as many runtimes as . would.

For reference, : instructs the compiler to not care if the var/proc exist on the type you're using it on.


RE: [Feature] Slice Open IV Drips to Pour Contents into Beakers - The Grim Sleeper - 02-04-2017

This patch will cause a comeback for synthflesh.

I am a little disappointed that only scalpels can be used. Sure, it would make the code longer, but that isn't your problem to solve wink


RE: [Feature] Slice Open IV Drips to Pour Contents into Beakers - Nnystyxx - 02-05-2017

Oh, this sounds amazingly useful
A++


RE: [Feature] Slice Open IV Drips to Pour Contents into Beakers - ZeWaka - 02-06-2017

(02-02-2017, 11:35 AM)ErikHanson Wrote: Please don't use the colon character, it's bad and can lead to runtimes

as i say, using the colon is known in the state of california to cause colon cancer


RE: [Feature] Slice Open IV Drips to Pour Contents into Beakers - aft2001 - 02-06-2017

Could you apply silicate to the IV drip to repair the gash?


RE: [Feature] Slice Open IV Drips to Pour Contents into Beakers - ZeWaka - 02-06-2017

(02-06-2017, 08:13 AM)aft2001 Wrote: Could you apply silicate to the IV drip to repair the gash?

i like this


RE: [Feature] Slice Open IV Drips to Pour Contents into Beakers - babayetu83 - 02-08-2017

why slash it open

couldnt you just drain the iv bag into the beaker


RE: [Feature] Slice Open IV Drips to Pour Contents into Beakers - NateTheSquid - 02-08-2017

(02-06-2017, 08:44 PM)zewaka Wrote:
(02-06-2017, 08:13 AM)aft2001 Wrote: Could you apply silicate to the IV drip to repair the gash?

i like this

fill iv drip with silicate, cut it repeatedly as it fixes itself


RE: [Feature] Slice Open IV Drips to Pour Contents into Beakers - warcrimes - 02-12-2017

This plus the new blood crates makes for synthflesh and carpet actually being attainable in useful quantities.


RE: [Feature] Slice Open IV Drips to Pour Contents into Beakers - Sov - 02-15-2017

(02-12-2017, 03:01 PM)John Warcrimes Wrote: This plus the new blood crates makes for synthflesh and carpet actually being attainable in useful quantities.

You can also just smoke 10 (5?)u or more of blood and then scoop it up. Can easily gather a few hundred u in no time

note that this usually terrifies new chemists


RE: [Feature] Slice Open IV Drips to Pour Contents into Beakers - fosstar - 02-27-2017

Oh god please merge this patch i want to make 900U of synthflesh without draining a monkey slowly aaaaaa