Commit Graph

38 Commits

Author SHA1 Message Date
Remie Richards 5fc7af7fbf attackby() now has an argument containing the parameters of the click that called it. Items placed on tables now center their icon where the user clicked. this is NOT true for racks, since racks look organised in their sprite.
Items reset their pixel_x and pixel_y values on pickup.
2015-02-19 13:02:43 +00:00
Firecage 3c69773a6c changes usr to user and adds another check. 2015-01-18 19:34:51 +02:00
Firecage 6e8fdc8b57 A fix so mineral floor tiles can be reshaped into mineral sheets. 2015-01-17 23:55:25 +02:00
phil235 22e0771eb9 Fixes more span classes. Replaces some "for() show_message()" with "visible_message()". Adding a suicide message for slimes. Fixes simple_animal/corgi having two attackby procs. 2014-11-28 16:08:59 +01:00
tkdrg ed4c03b099 Floor cleanup: Repaths /turf/simulated/floor to /turf/simulated/floor/plasteel
Repaths carpet and grass to /turf/simulated/floor/fancy/carpet and /turf/simulated/floor/fancy/grass
Cleans up a few floor procs
2014-11-12 22:50:32 -03:00
xxalpha b9f5947f5e High-traction Floor 2014-10-31 01:50:31 +00:00
tkdrg 0bb462e857 Fixes botcall conflicts, removes even more cruft and unused code 2014-10-30 20:36:30 -03:00
tkdrg cd5720b6a7 Floor refactor, try #1 2014-10-19 16:48:35 -03:00
Remie Richards a9d609bc9b Merge pull request #4802 from Menshin/stacks_merging_cleaning
Crafted stacks merging cleaning
2014-09-24 12:04:07 +01:00
Menshin 9ae4e3650c * prevented empty stacks from being generated on tiles, when merging stacks on floor after crafting them (e.g metal => floor).
Fixes #4775
* various clean-up of unnecessary checks related to stacks
2014-09-13 00:38:39 +02:00
Firecage aab99e8825 Fixes what Miauw said 2014-09-06 15:19:58 +02:00
Firecage 38beaaf75c Updates 2014-09-02 01:24:54 +02:00
Firecage 834f9a05b9 Mineral flooring 2014-08-31 17:12:17 +02:00
Firecage 6c7af5eb32 SPANCLASSES!!!!! 2014-08-26 09:52:13 +02:00
Kelenius 3908160998 One big update for stacks. 2014-06-10 20:36:08 +04:00
MrPerson 9eee3e5067 First pass at a qdel() garbage collection system for tgstation
Works pretty well. If it can't GC something, it'll just del() it and be done.
Speed is amazing, holy shit.

New procs you should be aware of:
qdel(atom/movable) - sets up an object for garbage collection. Call this rather than del(atom/movable).
atom/movable/Destroy() - called right before the object is GC'd, so it still has a loc. Also called if the object is del()'d.
new controller - garbage.dm has all the details on this. Basically it nulls all references on GC'd objects and force del() them if necessary.
Generally speaking, objects should use Destroy() for behavior prior to deletion rather than Del(). You should also always call the parent so the object gets the right gc_destroyed var set.

ISSUES:
Tries to GC mobs atm. This actually works for new players, not so much for humans/monkies/simple_animals/anything. I'm guessing it needs to clear out their mind and HUD and maybe other things.
Gibbing is really bugged. It works, but the overlays just sit there for awhile and ugh. I'm very tempted just to del() mob/living and mob/camera and call it a day.
qdel() equipment doesn't unequip the item.
Pipes don't generally GC correctly. Debugging suggests they get referenced in many pipenets and that isn't cleared properly. However some do work fine. Need assistance here.
Bots don't GC, probably in the radio controller.
Lots of other shit doesn't GC but it's hard to find them because of the pipe spam.
I think I'm calling Destroy() twice by accident.
2014-02-23 14:55:12 -08:00
Razharas 5a8eed4c32 Merge pull request #2824 from hornygranny/throw_range
throw_range pass
2014-02-18 16:17:13 -08:00
Miauw 3b24bb64f4 Merge branch 'master' of https://github.com/tgstation/-tg-station into NODROP
Conflicts:
	code/modules/mob/transform_procs.dm
2014-02-18 18:22:40 +01:00
Hornygranny 2134add41b Items with throw_range over 7 reduced to throw_range 7. This does not affect players as there's no way to extend your vision range. 2014-02-17 15:44:07 -08:00
Hornygranny 9e14c22747 Reduces throwspeeds on all items to realistic levels. 2014-02-15 19:58:03 -08:00
Miauw 0328f437ff finishes up nodrop as far as i can be arsed to 2014-02-15 16:22:25 +01:00
hornygranny 04aeb15af7 Rebalanced strange throwforces 2014-02-13 17:47:25 -08:00
Miauw 9b8656247c u_equip is now called unEquip PANIC 2014-02-13 20:58:33 +01:00
Miauw 8c7ef19be6 Replaced before_take_item() and drop_from_inventory() with u_equip 2014-02-12 19:51:37 +01:00
Hornygranny 01ce0f5392 Removed copypaste for cyborg metal sheets
Fixed typos
2014-01-17 15:45:09 -08:00
Cheridan bb9c09df46 Obsoletes flags = FPRINT | TABLEPASS*
*TABLEPASS was already totally obsolete.
FPRINT was used, but it was on virtually everything anyway.

Removes those flags from every instance where they were used. Also assigned and removed other flags where it made sense.

If it is desired, I can revive the flag as NOFPRINT, which would retain the original functionality, though inverted. That way it would be be used only  where it was intentional (holodeck items could use this for example).
2013-12-30 15:03:17 -06:00
Kyrah Abattoir 7e2b7805cc FIXED: inconsistencies with stack item names.
CHANGE: stacks are gender = PLURAL by default because it fits.
2013-11-24 00:14:46 +01:00
Robson Richards 50c5e7ee74 Cleans up the new cyborg floortile, Thanks for spotting it Aran! 2013-09-24 15:55:06 +01:00
Robson Richards 4995b64c18 Moves the plasteel/cyborg into plasteel.dm, works the same, Convenience 2013-09-21 17:27:39 +01:00
Robson Richards 6dba8dec10 Gives Engiborgs Floortiles
Rechargestation is set to replenish them aswell
2013-09-21 15:51:19 +01:00
Malkevin 3d1a96975f reverting last commit.
Wt.remove_fuel is 0 for a reason
2013-05-04 02:07:20 +01:00
Malkevin f8fa1fce09 Welding rods/shards/floortiles now costs welderfuel 2013-05-04 01:44:31 +01:00
Malkevin a010b11b83 Recyclable floor tiles
Adds the code to weld floor tiles together to make sheets, just like rods except it takes 4 tiles instead of 2 rods.
2013-04-30 02:59:20 +01:00
d_h2005@yahoo.com 2bcc351de4 -Moves the seed-making code in the extractor to its own proc. This is used in the new portable seed extraction bags, which can be found in the hydroponics lockers.
-Makes grass a normal grown object, tiles are made via attackby. Removes the specialized code needed to handle harvesting floortiles.
-Adjusts seed sprites in the .dmi to be consistent, and adds code to randomize their position on the map.
-Adds biotech level 1 to wood tiles to match grass tiles.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5622 316c924e-a436-60f5-8080-3fe189b3f50e
2013-01-28 04:22:41 +00:00
aranclanos@hotmail.com 5f90ea1a0f Runtime fix for moving around your hands a light tile. The new() proc of the light tiles missed some vars that the parent proc uses.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5434 316c924e-a436-60f5-8080-3fe189b3f50e
2012-12-31 08:42:11 +00:00
aranclanos@hotmail.com dee7b74a45 -Changed turf creations, merging everything to only one proc
-Fixes Issue 1085 - Artificers creating turfs with buggy lighting
-Spells now will use the proper proc to create turfs

Due to the amount of files changed, this is just the 'part one'. The merging in turf.dm is not finished, mineral walls and buildmode are still using the old system. The creation of turfs on the game panel is not using the proper procs yet. Stay tuned for this changes, but now, sleep.


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5054 316c924e-a436-60f5-8080-3fe189b3f50e
2012-11-13 13:39:00 +00:00
baloh.matevz af9386df3d - Carpets are now their own floor type. You can remove carpet pieces with a crowbar, like most other floors, and you can place new ones down. They will auto-update their design to match.
Screenshot:
http://www.kamletos.si/carpets.png

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4801 316c924e-a436-60f5-8080-3fe189b3f50e
2012-10-03 00:51:40 +00:00
johnsonmt88@gmail.com 867b21c7ce File restructuring!
This brings down a bunch of defines from /code/defines/obj.dm unto their appropriate files.

I've moved morgue.dm from game/machinery into game/objects/structures since that file contains no machines.

I've reorganized the objects/items/stacks folder and made a 'sheets' and 'tiles' folder to keep things separate

I've separated stool_chair_bed.dm into its own folder which now contains the files: stools.dm, chairs.dm, bed.dm and alien_nests.dm to make it a little easier to go through.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4582 316c924e-a436-60f5-8080-3fe189b3f50e
2012-08-29 18:00:30 +00:00