Commit Graph

410 Commits

Author SHA1 Message Date
Ccomp5950
52d328623a Tanks will also keep up with who manipulated them last.
Tanks placed in canisters, scanned with PDA or other analysis tool will set the manipulated_by variable to whoever did so.

The idea is that this person is aware what's in the tank and will act accordingly when you press the internals HUD icon.

If the user was the last person to manipulate the tank (or it's not been manipulated) then the user is smart about selecting the proper tank.

If the user was not the last person to manipulate the tank then he is only checking the pressure gauge to see what tank is fullest that matches his species breath_type

If that tank has nasties in it, welp he is going to get a breathful of nasties.
2013-12-03 23:01:42 -06:00
Ccomp5950
af11500762 Bugfix: Internals HUD click action.
Before:  If you had a tank on your back full of nice precious oxygen, and a tank of plasma in your hand and thought "I'll play it safe and turn on internals" and click the internals icon you would start sucking down plasma like you weren't really qualified to handle such things, how do you even get those two mixed up you big dummy!  Code was hardcoded junk.

After:  A check of what your species prefers to breath, you are an adult, I'm pretty sure you can remember if the tank on your back is oxygen or not, and you will turn on the fullest tank.
Code is now nolonger hardcoded junk, and is expandable by editing a couple of variables instead of hardcoding everything.  Double Rainbow, All The Way Across The Sky!

Also coded in a check for "Carbon Dioxide" in the event a downstream server uses a race that breathes that or we move dionaea to breathing it in the future.
2013-12-03 00:06:08 -06:00
Mloc
fc9dc8243e Merge branch 'dev-freeze' of github.com:Baystation12/Baystation12 2013-12-01 21:42:23 +00:00
volas
6841906228 Custom UI 2013-11-30 15:10:42 +04:00
DJSnapshot
00ecbcdcfd fix for https://github.com/Baystation12/Baystation12/issues/3887
Thanks to AquaDraco for the fix
2013-11-29 17:44:31 -08:00
Ccomp5950
3b2767cb35 Hud icons will now also update with their usual icons and states 2013-11-23 04:43:45 -06:00
Ccomp5950
317c562039 Fixed the HUD icons in upper left to show up now.
_onclick changes had removed the proc for this.
2013-11-23 03:26:57 -06:00
DJSnapshot
63fb3f29ea mecha fixes 2013-11-02 12:26:34 -07:00
Chinsky
dcde181bee SOMEONE did not put surgery things on new clickcode, so I done that. 2013-10-16 17:14:09 +04:00
Mloc-Argent
a1f55a50b1 Massive click code rework by SuperSayu, ported from TG.
Full details at https://github.com/tgstation/-tg-station/pull/1206
Fixes #3648

Hopefully done right this time.

Signed-off-by: Mloc-Argent <colmohici@gmail.com>
2013-10-08 20:27:39 +01:00