Commit Graph

9 Commits

Author SHA1 Message Date
elly1989@rocketmail.com
48088b79d9 ugh...this was horrible. I'm really sorry if I fucked anything up, I was literally going braindead towards the end.
Replaced every l_hand = and r_hand = and all that if(hand) crap to use standardised procs. This means we can use procs like Dropped() reliably as they will always be called when things are dropped.

Thorough documentation to come. But generally, if you want a mob's icons to update after deleting something in the inventory...use drop_from_inventory(the_thing_you_wanna_drop) just before deleting it. If you wanna put something in a mob's hands use put_in_hands() (or one of the variants). It'll try putting it in active hand first, then inactive, then the floor. They handle layers, overlays, screenlocs calling various procs such as dropped() etc for you. Easy

mob.equipped() is now mob.get_active_hand() because there was another totally unrelated proc named equipped() and stuff was confusing.

Weakening was made instantaneous.

Minor optimisations for human/handle_regular_status_updates(). I'll port these changes over to the other mobs next. Basically it should stop it constantly incrementing every status effect even after death.

umm... bunch of overlays related fixes... I think that's everything. :/

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3900 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-23 21:24:45 +00:00
elly1989@rocketmail.com
8961bd96d0 WARNING: This has been thoroughly tested and I'm happy that it's -stable- (it shouldn't runtime). However, it might have a few niggly bugs caused by specific items using no-standard or weird code. Most bugs will be stuff like it not updating overlays and such and can be fixed simply by dropping the item. That being said, if you're not comfortable with this, I'd suggest waiting to update past this revision.
update_clothing() has been broken up into it's key parts. A full explanation can be found in code/modules/mob/living/carbon/human/update_icons.dm
the tl;dr of it is that overlay updates are no longer called by the gameticker. Instead they are called by procs such as u_equip db_cick etc. This means faster updates (although admittedly, more of them can be called per tick). This however is offset by the fact that specific overlays can be updated now, vastly improving its efficiency. This will especially help when there are large numbers of dead mobs.

Fixed the throw code for TKgrab so it can be toggled.

Cloaking for aliens/humans/ninjas was changed. It's very crude at the moment and for that I apologise. But it works and is very efficient.It also stops cloaked individuals becomming invincible due to people being unable to hit them (even when they know exactly where  they are)

Fixed a bunch of bugs with damage-overlays. They  were updating FAR FAR to frequently. They were also horribly inefficient. They should now be virtually seamless when updating and only use cached icons, so they aren't affected by lag as badly. This may help with explosions lag a little.

There's still a tonne of stuff I need to refine with this. I'll be refining it down into some helper procs to reduce on code duplication and such

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3811 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-13 19:03:25 +00:00
vageyenaman@gmail.com
251ab4c5f4 !!! The insane crashing has FINALLY been fixed !!!
Metroids can no longer pick up donut boxes by drag/drop methods.

Fixed a disposal runtime error.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3203 316c924e-a436-60f5-8080-3fe189b3f50e
2012-02-27 02:17:41 +00:00
vageyenaman@gmail.com
92dbb05fd5 Moved around some stuff in R&D. (Change by Blaank)
Donut boxes and paper bins are now put immediately in your hand to prevent weird shit from happening when you're holding them in your hand or a backpack. Also fixed some compile error with the new special rig suits.

Added some new sprites, mostly chopped up and made by me. RESERVED FOR FUTURE SHENANIGANS.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2260 316c924e-a436-60f5-8080-3fe189b3f50e
2011-09-24 04:24:39 +00:00
mport2004@gmail.com
90bd0c9d68 Cleaned up the sleeper code a bit.
Monkey boxes lowered to 2 monkeys per box and the crate now costs net 15 points for one box. They were also removed from vending machines.  I warned that they would be changed if people continued to spam them.
Windows and disposal pipes layers adjusted slightly.


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2204 316c924e-a436-60f5-8080-3fe189b3f50e
2011-09-15 06:07:33 +00:00
tronaldnwn@hotmail.com
dfc0156af7 Jelly Donuts
- have a unique sprite frosted/ unfrosted.
- Have jelly in them once more.

Food & Recipes:
- Things involving poison mushrooms have poison in them.
- Xeno meat contains no nutriment, it is all nasty Xenomicro eggs.
- Soups have all their water back
- Wish soup, because apparently everyone likes having all that water in their foods.

Reagents
- Banana is a mysterious reagent that has healing properties to monkeys, and clowns! Perhaps it is that less than 2% difference in clown and monkey DNA?
- Juice is now less effective than tricordizine. Each heals a unique damage type.
- Cream and milk both do about the same thing now (slight chance to heal brute damage).
- Ramen Noodle reagents add to nutriment value once more.

Syntiflesh
- I accidentally a whole catalyst.
- Clonexydone was meant to be a reagent, not a catalyst in the formula.

Feeding monkeys and Xenos
- It is possible now to feed carbon based mobs food, and for all carbon based mobs to feed themselves (except for xenos who cannot pick up items much smaller than bulky sized).
- What this means: You can force feed Monkeys bananas now.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1752 316c924e-a436-60f5-8080-3fe189b3f50e
2011-07-02 00:30:24 +00:00
uporotiy
0685e1e564 Easier gib spawning.
Monkey cubes.
WIP bears.
Cleaned up some sprites.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@1740 316c924e-a436-60f5-8080-3fe189b3f50e
2011-06-29 16:33:21 +00:00
musketstgstation@gmail.com
5fac6d778d Donut boxes no longer eat items and disappear. Until a more permanent fix is in place, they also cannot be refilled with donuts.
Changelog updated.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@49 316c924e-a436-60f5-8080-3fe189b3f50e
2010-09-02 21:56:06 +00:00
only.lurking
662c08272a git-svn-id: http://tgstation13.googlecode.com/svn/trunk@2 316c924e-a436-60f5-8080-3fe189b3f50e 2010-08-23 14:29:20 +00:00