Commit Graph

3659 Commits

Author SHA1 Message Date
baloh.matevz
f392067896 - Reagent code reorganization commit 3 (finalizing everything)
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4493 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-18 21:53:47 +00:00
baloh.matevz
54f3bf84bc - Reagent code reorganization commit 2 (removing old file structure)
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4492 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-18 21:51:10 +00:00
baloh.matevz
9c28e82428 - Reagent code reorganization commit 1 (adding new files and file structure first)
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4491 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-18 21:49:36 +00:00
baloh.matevz
7789c31c92 - Mining satchels now once again fit in on belts and pockets
- Increased the mining satchel capacity from 30 to 50
- Fixed the issue where picking up all the items from a tile would display the pick-up message as many times as there were items to pick up.
- Fixed the problem which made ores sometimes stay on your screen after being inserted into an ore box.
- Restored the ability to empty satchels, and any other storage item that has the 'empty contents' verb, by just using them on themselves.
- Fixed an ages-old desync bug which happened when you used the a crossbow on a storage item. 
- Fixed a potential problem which caused removed item's layers to not get updated properly.
- Fixes issue 819

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4490 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-18 17:33:42 +00:00
elly1989@rocketmail.com
4073ac9b00 Replaced all 'file.extension' references with 'relativepath/file.extension' using a script by thvortex of ss13-daedalus.
All credits to the author for this handy little script.
I Committed the modified python script to tool directory. Although it needs to be in the root folder of your repo to work.

To notice the improved compile times, in dreammaker go to Build > Preferences > and untick "automatically set file_dir for subfolders"

If this commit inteferes with any large projects just revert it, do your thing, then rerun the script. Easy-peasy.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4488 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-18 16:33:40 +00:00
sieve32@gmail.com
94ea00b5a7 Clearing out a bad leftover that prevented MMI's from understanding AIs/borgs
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4487 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-18 03:11:45 +00:00
sieve32@gmail.com
03e199e30a -Makes the lobby music a config option, as per Erro's feature request.
Closes Issue 816

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4486 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-18 02:02:45 +00:00
baloh.matevz
e45aec98e7 - Fixed ore boxes not being properly loaded from mining satchels.
- Fixed it being possible to drag-drop any storage item to either hand from.. anywhere... You can now only do that if the backpack is somewhere on you.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4485 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-18 01:44:00 +00:00
baloh.matevz
73ec1110cd - Fixed the issue which caused a storage item to be opened whenever you tried to put something in it. I could have sworn I fixed this one before...
- Moved update_icon() calls from storage/fancy to all storage items, whenever an item is added or removed from the storage item. Also renamed updateIcon() to update_icon(), since that's the obj-wide proc.
- Part of fixing issue u
- Removed crayon and crayonbox snowflake code
- Removed bible snowflake code
- Made the click-drag to move to l_hand or r_hand thing something that works on all storage items.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4484 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-18 01:21:12 +00:00
sieve32@gmail.com
413dd153dc Changes to the Mecha Syringe Gun a bit so it actually makes sense.
-Syringes can now only be loaded from tiles that are adjacent/diagonal to you, and taking windows/doors into account
-As a tradeoff, you can now load syringes from storage items by clicking them
-Range to analyze reagents reduced to 3 tiles, but doesn't factor obstacles
-Mobs can no longer be scanned for reagents, because it didn't make much sense at all, and for balance
Fixes issue 520

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4483 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-18 00:56:55 +00:00
baloh.matevz
ca02f37a6e - Fixed issue 814. Added a obj/screen/inventory object type, which is for screen objects that can hold other ones. This will stop clicks on other UI slots from attempting to equip whatever is in your active hand to them.
- Fixed an issue where the monkey's slot_l_hand and slot_r_hand slot identifiers were being assigned to the two pieces of the 'swap hand' button instead of the actual hand screen items. Not tomention them being the wrong way around...

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4482 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-18 00:26:47 +00:00
baloh.matevz
96645c8726 - Proper fix for issue 803
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4481 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-18 00:00:34 +00:00
baloh.matevz
bdae39686f - Fixes issue 808. You won't get flashed by anything if you're blinded.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4479 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 16:30:42 +00:00
baloh.matevz
3be7d6d8ef - Fixes issue 812.
- Adds logging for throwing. Pulling and grabbing does not need to be logged in detail, since kill-intent grabbing is logged already.
- Something broke throwing, which made it runtime. This also fixes that.
- Fixes the problem of applying wires to a stack of glass, which only contains one piece of glass using wires, deleting the glass piece and not spawning a light tile. A call of the glass' use(1) was misplaced, which had the chance of deleting the object, thus stopping the proc, before it spawned the light tile.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4478 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 16:19:04 +00:00
baloh.matevz
f9d80e12ce - Fixes issue 811. A warning was sent if there weren't enough cable pieces left, but the proc did not return at that point.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4477 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 14:51:27 +00:00
baloh.matevz
ff55c845c1 - Fixed issue 810. reagent assignment in the harvested goods is now delayed by 0.5s, so the proc that creates the harvested goods upon harvest actually has the time to set the correct potency value and other values which affect the amount of reagents that harvested goods have.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4476 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 14:34:57 +00:00
baloh.matevz
4ac7df8917 - fixed issue 809. Nodamage checks are now done on all the lowest level procs as well as the higher level brute and burn damage procs for humans.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4475 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 14:08:55 +00:00
baloh.matevz
c8d4064206 - Fixes issue 807. pAIs and any other mob that is located within another mob (IE being held by) will also get sounds played. There are some limitations: It is 1 level deep, so if a pai is on a mob, which is in a closet, they won't hear sounds. Also, if there are two mobs held by the same mob, only the first found will get sounds played to it. Limitations are in-place due to how often this code is called.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4474 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 13:56:42 +00:00
rockdtben@gmail.com
c8feb9f493 Fixes issue 529
Now if someone busts out of a mob it will gib and the contents of its stomach will fly out as intended

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4473 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 12:39:20 +00:00
rockdtben@gmail.com
5a4927a000 - Fixes issue 786 .
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4472 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 11:11:58 +00:00
baloh.matevz
4ce5a0d405 - Fixes issue 653.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4471 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 09:44:48 +00:00
baloh.matevz
4c245f81cc - Fixes issue 415. The problem with the moving of the syndicate shuttle was a condition bomb_set, not being properly set in all cases, where a bomb was timing. I added the setter for the bomb_set variable in nuclearbomb/process(). So if at least ONE nuke is ticking it means the bomb is set. The bomb_set variable gets reset in the appropriate places now. The places are if either the safety is enabled again or if the timer is disabled. Enabling the safety now automatically stops the timer. The timer cannot be enabled without the safety being off.
The condition that caused the bad result before this fix was if the timer was enabled before the safety was turned off.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4470 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 09:28:44 +00:00
baloh.matevz
6b1a3e46a0 - Fixes issue 804. valve networks were not properly built during initialization, which resulted in both nodes beings et properly, but only one network to be set for both nodes, despite each of them having their own network. A call to build_network() fixed the issue.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4469 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 08:38:40 +00:00
baloh.matevz
097aae989c - Fixes issue 675. I just added a few Move() -s and it works fine.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4468 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 08:01:13 +00:00
baloh.matevz
c2734300b2 - fixed issue 803. Admins will be able to hear deadchat no matter what... unless they shut it off with the toggle-hear-deadchat verb, that is.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4467 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 07:23:17 +00:00
baloh.matevz
f0f803407a - Fixed a potential problem where the random teleportation thing that teleporters have a chance of doing would teleport you to a tile that is behind the transition edge.
- Fixed issue 470. You can now teleport while using the chameleon projector.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4466 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 07:05:03 +00:00
baloh.matevz
3a511d5462 - Fixes issue 787. Hacked mulebots can still be loaded with lots of stuff, including unanchored structures, machinery, items and mobs. They however cannot be loaded with screen, hud or effect-type objects. They also cannot be loaded by anything that is not placed on a turf tile to prevent loading things from your inventory, which would cause issues.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4465 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 06:43:18 +00:00
baloh.matevz
6a268decf4 - Fixed issue 779. HOPEFULLY FOR THE LSAT TIME!
There was a if(world.time - M.last_bumped <= 60) check, which attempted to prevent airlock bump-spam, by limiting it to one bump per 6 seconds getting processed, but the kicker is that M.last_bumped was never actually set, making the check irrelevant. I fixed that and changed it to one bumpopen per second.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4464 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 06:00:59 +00:00
baloh.matevz
7b572e4ca7 - Fixes issue 760 The AI's machine variable did not get reset properly upon failure. The machine variable's interact() proc is normally called once per tick. In the case of an APC it printed the fail message, but did not reset the variable to null, meaning the same machine's interact() proc would get called the next tick, giving the same error.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4463 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 05:48:16 +00:00
baloh.matevz
adbc74a942 - Fixes issue 748. Pulling restrained monkeys now behaves as it's supposed to.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4462 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 05:37:11 +00:00
baloh.matevz
d7c1882e16 - Fixes issue 463. Changeling clowns will now be able to return to their clown names.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4461 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 05:00:40 +00:00
baloh.matevz
892ead02de - Fixed issue 702 and issue 716
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4460 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 04:43:50 +00:00
sieve32@gmail.com
626cb74704 -Metroids will now feed when 'content' (But not as quickly), meaning they will evolve and reproduce properly
Fixes Issue 765
-It is now possible to weld secure lockers shut
-Lockers now have a welded overlay (Expect in some cases, such as cabinets)
Thanks to Pete for the sprite

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4459 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 04:22:53 +00:00
baloh.matevz
f3996dfc5e - Fixed issue 657. Attacking someone at a distance (using TK) will no longer make you get smeared in their blood.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4458 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 04:18:08 +00:00
baloh.matevz
9062d7fb23 - Added a real_name variable to DNA, which gets assigned when mobs are created and when preferences are copied as well as when changelings absorb mobs. This is so I could drop the dictionary-style list from changelings, which went list(real_name = \ref[dna]). What this meant was that if you absorbed multiple people whose real_name was "Unknown", you'd only have one dna to show for it. Now all of them will show and will be available to transform into.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4457 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 03:55:09 +00:00
Kortgstation@gmail.com
e8f4ce561f What did I even do
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4456 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 03:12:58 +00:00
Kortgstation@gmail.com
6800f6aaf2 Gave titles to the manuals to stop the incomplete messages when reading them. Which fixes some issue or another but I dunno how to link that so whatever.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4455 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 02:53:19 +00:00
baloh.matevz
f5024b5d05 - Fixes issue 752
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4454 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 02:19:09 +00:00
baloh.matevz
bdd6324d9a - Fixed issue 798
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4453 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 02:04:22 +00:00
johnsonmt88@gmail.com
852b838e4e There were a bunch of boxes that had their own special code when they all do the same thing. So I've merged them into proper storage items.
Boxes affected:
- Donut boxes
- Egg cartons
- Candle packs
- Match boxes
- Snap pop boxes
- Monkey cube boxes

Items I didn't merge:
- Pizza boxes
- Cigarette packs

Pizza boxes are a whole new kind of 'special snowflake code' that is best left the way it is. Cigarette packs involve some stuff I'm unfamiliar with so that can wait until I learn what I need to learn.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4452 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-17 00:35:01 +00:00
baloh.matevz
cac628a640 - In preparation of fixing issue 585, which extends far further than just the things listed there, as well as to standardize the many incarnations of satchel-type code (pill boxes, mining satchels, hydroponics satchels, etc.) I have added some functions to storage type items:
New variables:
var/use_to_pickup = if 1, the storage item also works like satchels, which means you can use it on something else to pick it up.
var/display_contents_with_number = if 1, the items in the storage item are grouped by type with the number of items being displayed. See the screenshot.
var/allow_quick_empty = if 1 on creation, it adds a verb that allows you to empty the item with one click
var/allow_quick_gather = if 1 on creation, it adds a verb which allows you to switch between pick-up methods. one-per-click or all-on-tile. Same as satchels worked. use_to_pickup must be 1 for any of that to matter.
var/collection_mode = 1;  //0 = pick one at a time, 1 = pick all on tile

New procs:
/obj/item/weapon/storage/proc/can_be_inserted(obj/item/W as obj, stop_messages = 0)
- Returns 0 or 1, depending on whether the item W can be inserted
/obj/item/weapon/storage/proc/handle_item_insertion(obj/item/W as obj)
- Inserts the item into the storage item and calls all the procs it needs to. Doesn't check whether the item can fit tho, tha'ts what can_be_inserted() is for.
/obj/item/weapon/storage/proc/remove_from_storage(obj/item/W as obj, atom/new_location)
- Removes item W from the storage object and sets it's loc to new_location or get_turf(src) if one is not provided.
/obj/item/proc/on_exit_storage(obj/item/weapon/storage/S as obj)
- Called after the object has been removed from the storage item S. The object's loc is already set to the new one.
/obj/item/proc/on_enter_storage(obj/item/weapon/storage/S as obj)
- Called after the object has been inserted into the storage item S. The object's loc is already set to S.

I made satchels work on this new code. The rest will be added to it soon. See the screenshot.

Screenshot:
http://www.kamletos.si/new%20satchels.png

This is yet another big change and it is very possible that bugs will come from it. Please report them to me or on the tracker.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4451 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-16 23:35:53 +00:00
giacomand@gmail.com
be76c3afcc Fixed issue 645.
I changed how uplinks worked. Instead of there being a duplicate item which would switch out when it activates, there's an item called "obj/item/device/uplink/hidden". It is a hidden uplink which you can place in any obj/item. In "hidden" is where it will generate menus, check for triggers to show the menu and etc.. No need to switch out with duplicate items or add the menu onto the PDA's notes.

How to create a new uplink item in 3 easy steps!

1. All obj/item 's have a hidden_uplink var. By default it's null. Give the item one with "new(src)", it must be in it's contents. Feel free to add/remove "uses".

2. Code in the triggers. Use check_trigger for this, I recommend closing the item's menu with "usr << browse(null, "window=windowname") if it returns true. The var/value is the value that will be compared with the var/target. If they are equal it will activate the menu.

3. If you want the menu to stay until the users locks his uplink, add an active_uplink_check(mob/user as mob) in your interact/attack_hand proc. Then check if it's true, if true return. This will stop the normal menu appearing and will instead show the uplink menu.

I've given the recharge station's verbs a category so they don't create their own tab.
I've added a mob/proc called put_in_any_hand_if_possible. Name speaks for itself. Returns true if successful, false otherwise.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4450 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-16 21:57:27 +00:00
baloh.matevz
e984c8b9bc - Fixes handcuffing and legcuffing errors that the inventory overhaul broke.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4448 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-16 19:48:43 +00:00
baloh.matevz
d8ec97e76e - Fixes an equip_e related runtime error
- Fixes storage items not updating when you put something in them.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4447 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-16 19:36:43 +00:00
baloh.matevz
0fab5964e3 - Fixes issue 790. A supply order's cost is now subtracted from the total points cost only once you close the comment window. The order is also added to the list of orders once it's paid for, after the list is closed. And yes, I did do a check to see if there are still enough points after you close the comment window to prevent people from opening a million windows and going into negative supply points.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4446 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-16 19:09:44 +00:00
baloh.matevz
6e776a54c4 - Fixes the issue of simple animal attacks not logging in attack logs. There's a billion places where these attacks are copy-pasted to... seriously, who coded this? Fixes issue 795
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4445 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-16 18:52:34 +00:00
petethegoat@gmail.com
0970e6c55d Standardised reagent colour mixing a little bit. Fixes issue 785.
Changed the path of large beakers, so they're actually a subtype of beaker (wtf)

Moved new_year.dm to unused.
Updated Carn's sequential master controller to not have tension stuff, for potential live testing.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4444 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-16 18:33:34 +00:00
baloh.matevz
bdee209b43 - Fixed issue 776. Answering a messages sent to Centcom via the command console by using the RPLY link will echo the message to admins.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4443 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-16 18:32:51 +00:00
baloh.matevz
b946fa1d81 - Moved the r-wall define to after the definition of wall. It always bugged me and I must have fixed that 20 times in my local repors by now... Strange how I never committed it.
- Fixed issue 738 Hidden walls now properly update when adjacent tiles are changed.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4442 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-16 18:19:21 +00:00
baloh.matevz
26314e1310 - Fixed a small noize-bug
- Fixed issue 783 Unstable mutagen now only reacts to mobs with dna.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4441 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-16 17:57:27 +00:00