Commit Graph

96 Commits

Author SHA1 Message Date
YotaXP febfa4d1e5 Merge branch 'qdel-with-datums'
Conflicts:
	code/_onclick/hud/screen_objects.dm
	code/controllers/garbage.dm
	code/game/atoms.dm
	code/game/objects/items/weapons/storage/storage.dm
	code/modules/mob/mob.dm
2014-03-27 21:46:53 -04:00
Mloc-Hibernia 8af8a43d6f Initial pass to convert LF to CRLF
Signed-off-by: Mloc-Hibernia <colmohici@gmail.com>
2014-03-24 08:53:40 +00:00
YotaXP 3656217c29 Modified qdel() to accept any datum.
The garbage controller no longer bothers nulling out every variable on destroyed objects.
An object can opt to not be collected by returning true from Destroy().  Useful for pools or other edge cases.
Fixed boxes not being collected, along with a couple other things.
Turfs will not be monitored for collection.
generate_ion_law() is no longer a /datum proc, and I am an admin in the repo.  Deal with it.
2014-03-24 00:10:43 -04:00
MrPerson 6b29fecda1 Merge branch 'master' of https://github.com/tgstation/-tg-station into qdel_r
Conflicts:
	code/game/machinery/bots/ed209bot.dm
	code/game/machinery/rechargestation.dm
	code/game/machinery/turrets.dm
	code/game/objects/structures/crates_lockers/closets.dm
	code/modules/research/circuitprinter.dm
2014-03-08 22:03:03 -08:00
MrPerson 917a2dd2a4 Rename equip_to_slot_or_qdel() -> del()
Still qdel()'s them, just naming the proc back.
Should hopefully reduce the number of lines different in the pr.
2014-03-02 21:08:25 -08:00
Razharas b27d9c7396 Added RPED, some sprites and new power cell path
Your dreams of big part storage and fast machine part exchange came true
14 slot R&D part-only autoseeker/picker/dropper/exchager is in
Added different sprites for better capacitors and scanning modules
Changed the power cell type to be compatible with all this machine
changing faggotry
All sprites here are codersprites so ask nien/WJ for better ones if you
want
2014-02-24 05:14:43 +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
Miauw 65db954b38 Fixed misc complaints about NODROP 2014-02-18 18:17:55 +01:00
Miauw 3f9bf15ca5 Merge branch 'master' of https://github.com/tgstation/-tg-station into NODROP
Conflicts:
	code/modules/mob/mob.dm
2014-02-15 17:30:21 +01:00
Miauw 9b8656247c u_equip is now called unEquip PANIC 2014-02-13 20:58:33 +01:00
Miauw b8b57ff4f1 Replaced canremove with NODROP. 2014-02-13 19:52:46 +01:00
Miauw 8c7ef19be6 Replaced before_take_item() and drop_from_inventory() with u_equip 2014-02-12 19:51:37 +01:00
fleure 0963e180c0 Merge pull request #2656 from Razharas/AnomalyRuntime
Anomaly runtime
2014-02-11 16:51:41 +00:00
fleure bc733a83a4 Merge pull request #2650 from Giacom/master
MiniStation Update
2014-02-06 20:14:25 +00:00
Razharas 6738b57e4f Anomaly fix
Fixes anomalies runtiming because something is wrong with areas
2014-02-06 04:34:24 +04:00
Giacomand 7319456770 MiniStation Update
Fixes a runtime with the vent clogging event, which happens to MiniStation.
Lowered all vent requirements to 20.
Fixed transit tubes from breaking by reversing the pod direction twice.
Changed the icon state name of the terminators so that they had density.
Transit tubes will now reset the view of the mob exiting.
2014-02-05 22:04:58 +00:00
fleure 26afced91b Merge pull request #2629 from Giacom/master
MiniStation Update
2014-02-05 18:38:03 +00:00
Giacomand a27a03c11f The infestation events will now work correctly on MiniStation. 2014-02-04 20:26:30 +00:00
Cheridan 6bdcf64525 Completes code changes; reimplements ninja steal objective. 2014-01-29 12:28:15 -06:00
Cheridan 3a9541df96 Converts Steal objectives (except for blueprints grr) to a datum-based system. This is to support further changes to the objective system, though it does make adding new objectives nice, simple and compartmentalized. 2014-01-25 18:10:06 -06:00
Giacomand aceb4b22e1 Removed the icon color blend operations from human's update_icons().
Changed all the hair/facial_hair/eye sprites to use a white base.
Changed the preview screen, in the preference menu, to use ICON_MULTIPLY to be able to use the new white sprites.
Removed the unused and broken cloaking item.
Ninjas now use the alpha variable, removed most of the checks for it.
Updated the documentation a bit.
Added some helper procs for later.
2014-01-16 14:33:50 +00:00
Incoming f993585486 [tumblr approved] Sausage Party Reduction
*Lets adamantine golems and ninjas generate female where before they were generated exclusively male.

The ninja spacesuit has a coded in female variant that has existed forever but was not actually used. It only shows up upon suit ACTIVATION because (?:?:?)|\|i|\|j4c0d3(?:?:?).

Likewise female adamantine golems have their own sprites and can show up in staff of change shots, but ones generated from the rune were always male.

This does NOT effect admin summoned unknown humans, those are all still male.
2014-01-12 04:33:45 -05:00
Giacomand f1e7637bab Disabled the game using set background by making all instances of it use a define, which can be changed in code/_compile_options.dm
Testing has revealed that it reduces the sluggishness of the game, though it will spike from lag when the singularity is loose. Thanks to ChuckTheSheep for suggesting it.

Server owners who want to keep set background enabled can do so by changing the define.
2014-01-10 18:32:28 +00:00
Cheridan 261615a0bc Ninja Death Tweak
THE CODE NO LONGER CHECKS IF THE MOB IS A NINJA EVERY TIME SOMEONE DIES

NINJAS GET EXPLOSIVE IMPLANTS TO DUPLICATE THE OLD FUNCTIONALITY

YES I'M MAD
2014-01-04 19:26:05 -06: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
Giacom 0c03873d03 Merge pull request #2053 from Aranclanos/NOBODYLIKESNINJAS
Ninja mask runtimes fix.
2013-12-18 10:10:26 -08:00
Aranclanos e136fd6cb5 If it's not human it doesn't mean that it's a silicon! Fixed a runtime regarding the ninja mask on scout mode. 2013-12-16 18:08:14 -03:00
Giacomand 045e68f1cf Added the friday the 13th event. It will basically cut the event frequency in half to simulate unluckiness. 2013-12-14 00:49:27 +00:00
Giacom dc9ba09a22 Merge pull request #2013 from JJRcop/doomsday
Adds Doomsday to holidays
2013-12-13 13:28:05 -08:00
Giacomand ceec829294 Tons of typo fixes and renames Centcomm to Centcom. Manual merge of #1950. 2013-12-13 21:14:23 +00:00
Giacomand 25c43d0a98 Added a santa hat icon for the entertainment monitor. Made it change in the Xmas event. 2013-12-09 19:35:31 +00:00
JJRcop 0e62ab1adc Adds Doomsday to holidays 2013-12-08 20:41:02 -05:00
TZK13 e4de436a1e Renamed psilocybin to mushroom hallucinogen, removed psilocybin/mushroom hallucinogen from huge mushroom slice, removed space drugs from reishi, added anti-toxin to reishi and lowered the amount of sleep toxin in reishi. 2013-11-28 00:15:56 -06:00
Aranclanos 6177c28bbe Merge pull request #1687 from Giacom/alien_candidate
When the game tries to find players for roles it will now prioritize players who are the least afk
2013-11-09 10:18:44 -08:00
AlexanderUlanH 87b72833bd Added the labor shuttle 2013-11-02 15:16:39 -04:00
Giacomand 8557cb22df When the game tries to find players for roles it will now prioritize players who are the least afk.
For example, it will try to find players that are afk for 5 minutes or lower, if it fails it'll add a minute to the 5 minutes until it finds a candidate or until it reaches 10 minutes.

I changed the get_candidate for aliens so that their 5 minute bracket is instead 45 seconds. This is because a lot of the time larva need to be active ASAP to avoid danger (such as being spawned in dangerous areas) There was a cases of an AFK larva that was very easily killed of, making it fraustrating for the observers watching.
2013-11-01 18:29:49 +00:00
Giacomand 84248eb6ab Made containment fields shock you when you walk into them, not when you walk near them.
Field generators, that are active, will now shock you; they did before but it was because of the containment field near it.
Changed the type path of the field generator and containment field:

/obj/machinery/field_generator -> /obj/machinery/field/generator
/obj/machinery/containment_field -> /obj/machinery/field/containment

Changed the map to have the new type paths.
The containment field will now shock you when it is created.
The containment field layer is a little above objects, so objects going through are under the field icon.
Cleaned up a bit of the code.
2013-10-25 15:01:04 +01:00
Cheridan a414a51847 Supresses adminlogging for brand intelligence explosions.
Carp Migration is now announced immediately, with the carp coming shortly afterwards.
2013-10-11 12:36:05 -05:00
Cheridan fc82725d87 Merge pull request #1514 from Giacomand/rampant_tweak
Tweaked the brand intelligence event to use the mimic copy class.
2013-10-10 16:28:19 -07:00
Giacomand aa54ceeb14 Merge pull request #1540 from Incoming5643/spooky
2SPOOKY
2013-10-10 14:13:44 -07:00
Aranclanos ee35e83494 Small changes for cael's shuttle loan event 2013-10-09 16:44:52 -03:00
Aranclanos b6e1fc6d95 Merge branch 'terbs_weekly_fun' of https://github.com/caelaislinn/-tg-station into terbs_weekly_fun
Conflicts:
	code/controllers/supply_shuttle.dm
2013-10-09 16:03:39 -03:00
Incoming feedac9505 Add a special always run event for halloween where the entire crew bursts into skeletons after a short while.
This has no real effect on anything besides the fact that skeletons can use the rarely touched xylophone var.
Adds a pair of usr checks for corgis so events can place things on their head without incuring a runtime (the chrismas event also does this)
2013-10-08 22:38:03 -04:00
Giacomand 3a323c40b1 * Tweaked the brand intelligence event to use the mimic copy class.
* Mimic vending machines will now also talk.
 * Reduced the chance for a vending machine to explode, instead of becoming a mimic.
2013-10-06 17:14:20 +01:00
Aranclanos c219c9e4ba Merge pull request #1405 from Incoming5643/toyAI
Adds a toy AI to the arcade machine prize list
2013-09-28 14:58:53 -07:00
Cael_Aislinn d1332ec834 adds shuttle loan random event - centcomm asks to borrow the shuttle for 5 mins and it returns with a reward (and sometimes something bad)
Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
2013-09-24 17:14:06 +10:00
Cheridan 566e1cc166 Merge branch 'master' of https://github.com/tgstation/-tg-station into pr/1415
Conflicts:
	tgstation.dme
2013-09-23 11:04:33 -05:00
Pete Goodfellow be1906cb42 Added more feedback to the radiation storm and rampant brand intelligence events. 2013-09-21 17:58:59 +01:00
Pete Goodfellow ff283bbaf8 Changed the vent clog event to garbage collect its reagents instead of deleting them.
Ticked the vent clog and false alarm events into the dme.
2013-09-21 15:13:47 +01:00
Cheridan 49384f77d0 Final event code cleanup! 2013-09-20 00:28:19 -05:00