Commit Graph

9304 Commits

Author SHA1 Message Date
Drieden 7a92faa3e9 Fixed a typo. 2012-06-29 04:56:18 -04:00
CIB 4065470e00 Merge pull request #1415 from Erthilo/master
Bugfixes 2: Electric Boogaloo
2012-06-28 22:15:39 -07:00
vageyenaman@gmail.com 9a7675ce5a Implemented Tobba's new lighting system. This grants some infrastructure to allow for colored light sources. It should also, theoretically, but more efficient.
Created a quick variable to let projectiles automatically illuminate.

Implemented some of Ausops' sprites.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3944 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-29 03:43:30 +00:00
Erthilo 0e6c0cfac4 Fixed and improved body scanner, fixed derpy airlock cycling on the map. 2012-06-29 03:28:58 +01:00
ericgfwong@hotmail.com 3710c741a7 -Moved a couple of items out of medical storage so chemists can grab them
-Added medicine closet to genetics. It contains syringes and a couple of antitoxin bottles
-Removed air scrubber not connected to anything in medbay
-Removed duplicate window in the incinerator
-Added better descs for camera monitors
-Merged Surgery and Sleeper room /area/s

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3943 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-29 02:06:56 +00:00
Erthilo 991e11b30d Merge branch 'master' of github.com:Baystation12/Baystation12 2012-06-29 02:56:59 +01:00
Erthilo f5b221bb63 Fixes a few places where if statements wouldn't work due to syntax errors. 2012-06-29 02:31:46 +01:00
elly1989@rocketmail.com a04513648a Fix for forhuggers appearing under hud/inventory slots of aliums.
Well, I say 'fix' I just removed the active-hugger image code. It didn't really add anything worthwhile to them.

Simplified a little snippet of WC code.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3941 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-28 23:46:57 +00:00
Erthilo 95bae4da54 Fixes AI holopad speech not being picked up by tape recorders. 2012-06-28 22:33:07 +01:00
Erthilo 73e2b5f5c2 Hotfix for stun batons harming on all non-help intents. 2012-06-28 22:31:16 +01:00
Erthilo f694e99abb Hotfix for Exosuit Fabricators not syncing. 2012-06-28 22:30:38 +01:00
elly1989@rocketmail.com 0f34375088 Runtime fix for:
runtime error: Cannot read null.reagent_list
proc name: Point To (/atom/verb/point)
  source file: cellautomata.dm,176
  usr: Zinedine Zidane (/mob/living/simple_animal/corgi)
  src: null
  call stack:
Point To()

Cause:
corgi/
    var/reagents = null

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3939 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-28 21:22:06 +00:00
petethegoat@gmail.com a2c5a0f15b Committing work on mirrors, and a capitalisation fix for pizza boxes.
Mirrors aren't on the map yet, but should work fine.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3937 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-28 18:57:32 +00:00
Erthilo ae63e9ec9f Mind Transfer now requires wizard garb. 2012-06-28 19:56:20 +01:00
Rob Palkowski 479705ae60 Response to server probe no longer always gives a null host name. 2012-06-28 10:51:39 -07:00
elly1989@rocketmail.com 3941c9b86c Standardised the handle_regular_status_updates() procs for alien hunter, queen and sentinel. They were just copypasta so I fixed the updatehealth() procs and removed the unneeded code.
Removed the invisibility verb for hunters. They now cloak when using stalk intent instead. :3 rawr

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3935 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-28 17:37:42 +00:00
johnsonmt88@gmail.com 80b15df54b ** Mob Define Cleanup: Part 1 **
I'm currently working on moving all of the vars in mob_defines.dm and some procs in mob.dm into more fitting places. For example, ghosts and simple animals can not be cloned, so they do not need a cloneloss var. Cloneloss would be better fitting to /mob/living or even /mob/living/carbon. 

By moving these defines into proper children of /mob we lower the amount of resources that must be set aside every time a mob is created and we lower the amount of data that gets transfered between mobs when we combine, transfer or transform them. In theory, this should help free up some resources and combat lag.

Due to how integrated some of these defines are in the rest of the code, I'm going to be committing this cleanup in small batches. Doing it this way instead of one massive commit means that bugs will be easier to locate and identify. It is also less likely to overwhelm players with bugs, and if it still does, it will make it easier for us to revert only the section that is causing problems. Smaller commits also means merging with existing code will be less of a nightmare and has less potential for merging mistakes.

One of my goals in this cleanup is to add a description to every single variable in mob defines. While some of them are self explanatory, there are some there that are used in horribly obscure ways on top of having no comment to describe their use.

-----------------------

Mob defines moved to living:
- last_special*
- bruteloss
- oxyloss
- toxloss
- fireloss
- cloneloss
- brainloss
- halloss
- hallucination
- hallucinations(list)

*Note: I believe this variable is not needed, but the code it is used in (the resist verb) is cluttered and messy. That chunk of code probably use a re-write. I'll put it on my TODO list and if I survive mob_defines I'll try to get around to it but if anyone wants to do it for me, that would certainly help!

-----------------------

Mob procs moved to living:
- getBruteLoss()
- adjustBruteLoss()
- getOxyLoss()
- adjustOxyLoss()
- setOxyLoss()
- getToxLoss()
- adjustToxLoss()
- setToxLoss()
- getFireLoss()
- adjustFireLoss()
- getCloneLoss()
- adjustCloneLoss()
- setCloneLoss()
- getHalLoss()
- adjustHalLoss()
- setHalLoss()
- getBrainLoss()
- adjustBrainLoss()
- setBrainLoss

Mob procs moved to carbon:
getDNA()
setDNA()

-----------------------

Mob verbs moved to carbon:
- Sleep
- Lay down / Get up

-----------------------

The : operator...

The thing that has been killing me through this whole cleanup is people using or copy/pasting the : operator everywhere. 


*** Please use obj.var_or_procname. Do not use obj:var_or_procname ***


Using obj:procname will not throw a compiler error if obj does not have that specific var or proc. This means that the coder making changes will NOT be informed of an error which will result in a proc failing, potentially being completely unusable and definatly causing a runtime error.

With that said, I fully anticipate that most bugs (if any) caused by this mob define cleanup to be the result of : operators.

I've been replacing many : operators in favour of the . operator as I've been going, most noteably I went out of my way to remove almost every : operator from the 4000+ line Chemistry-Regents.dm
Exceptions:
- Water: Turf and Atmos related vars. I'm not familiar with the members and methods in those class' hierarchy.
- Silicate: because it's commented out and I honestly dont see it returning.
- Thermite: Turf and Atmos related vars.
- Corn Oil: Turf and Atmos related vars.

Final note: While this may be the source of some mob-related bugs, there are two other revisions that have been committed between now and the last time either of the the two tgstation servers have been updated. These revisions both touch mob-related files. I'm not blaming these other revisions for anything, especially since one of them is mine anyway, I'm just listing them here for refrence to help quickly identify any problems.
- My human/life() changes in r3925 
- Carn's life() standardizations in r3933

Stuff unrelated to mob defines:
- Fixed borgs and such being able to go into DNA modifiers.
- Changelog updated and I added Sieve to the list of coders.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3934 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-28 17:06:19 +00:00
headswe 7f3f456207 Merge pull request #1411 from Erthilo/master
Fixes + Whitelist Update
2012-06-28 04:16:22 -07:00
Erthilo 4f6ec49558 Fix wallet not being made by the biogenerator. 2012-06-28 01:54:09 +01:00
Erthilo 34e4ba4750 Only chairs with wheels now work with fire extingusihers. 2012-06-28 00:01:58 +01:00
Erthilo 73ba4c7f0f Readjusted Medical items heal caps. 2012-06-27 23:36:38 +01:00
Erthilo 0c1e3f3cc4 Fixes PDA's being unusable when buckled but not handcuffed. 2012-06-27 23:36:18 +01:00
Erthilo e37049eee1 Fixes Tajaran spawning as humans. 2012-06-27 22:21:39 +01:00
Erthilo 740bf13cec Changes mech part weight from 20 to 5. 2012-06-27 21:25:33 +01:00
unknown 869a82a3e3 Clipboards changes
+Added 'Rename' function
+Added ability to add photos to clipboards

%Fixed linebreaks not being replaced with <br> when viewing paper from clipboard

Signed-off-by: Chinsky <comma@nano.(none)>
2012-06-27 23:12:09 +03:00
elly1989@rocketmail.com ea333ff216 Ugh another big 'Carn broke everything' commit.
Tried to standardise the (confusing as all hell) handle_regular_status_updates() procs for monkeys alien/humanoid, alien/larva, brains and humans.

Removed clamp_values as per Rockdtben's request.

Hopefully this should make those procs a lot easier to read and work with as well as reduce the number of calculations done every call.

Admin's rejuvinate verb cures disabilities, sdisabilities and sight/hearing.

Xenos can actually use their sleeping icon properly now.

If I've broken anything let me know directly and I'll have it fixed/reverted within 24 hours.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3933 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-27 19:47:17 +00:00
Erthilo e65b1739be Fixes surgery in general. 2012-06-27 18:08:56 +01:00
johnsonmt88@gmail.com db89a2aefb Viruses no longer re-infect people who have been vaccinated or otherwise cured.
Chameleon projectors no longer let you move freely in space.
- I realize the way I fixed this is terrible, but the whole relaymove() proc in chameleon projectors is terrible. I was unable to rewrite it without breaking it completely so this fix will have to do.

Runtime fix for facehuggers having a null target (the mob they're attacking.)

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3930 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-27 17:05:27 +00:00
elly1989@rocketmail.com 136f27d289 Fixed a minor derp with floorbots. The completed floorbot was spawning in-hand, a place it should never be.
Updated the bots text to use the stylesheet.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3928 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-27 16:12:00 +00:00
daniel.cf.hultgren@gmail.com bcfa1cecf1 Added pizzaboxes. Stackable, Tagable, and awesome. Sprites by supercrayon (I slightly modified them, sorry)
Updated (and fixed) changelog.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3927 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-27 15:03:15 +00:00
unknown 30322cae04 Made briefcase spawn empty.
Breifcases are mostly used for storing things other than paper, and that includes tedious process of getting all this paper out somewhere.
All briefcase-wielding jobs have clipboards at their disposal for storing paper, and if they need more paper, i'ts not hard to find on station.
2012-06-27 17:37:16 +03:00
baloh.matevz 9f3005255c - Renamed the obj/hud other_update() proc to hidden_inventory_update()
- Renamed the obj/hud show_otherinventory var to inventory_shown
- Added the F12 hotkey which hides most of the UI except for the intent switcher, hands, health indicator, damage indicators and the other pop-in indicators on the right. The proc is called /mob/verb/button_pressed_F12(), the verb abbreviation is "F12" and it's hidden, so it won't show in the info panel. This currently only works for human mobs.

Screenshot:
http://www.kamletos.si/minimal%20UI.png

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3926 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-27 08:13:23 +00:00
johnsonmt88@gmail.com da5bfd3b0f Setting people's criminal status via SecHUDs now require the user to be alive, and to actually be wearing the HUD.
Set the solar control computers to 'off' by default since you have to set them off then back on again to get them working properly anyway.

Fixed a typo in glass/attackby() causing lit-glass tiles to not be created. Fixes issue 593

Moved certain procs in human/life.dm() into an if(stat != DEAD). This means that certain procs will update only if the mob is alive.
Affected procs:
- handle_virus_updates()
- handle_changeling()
- handle_mutations_and_radiation()
- handle_chemicals_in_body()
- handle_disabilities()
- handle_random_events() 
- update_canmove() 
- - If dead, it forces mob.canmove to 0, meaning you don't get to be the walking dead.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3925 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-27 06:16:31 +00:00
baloh.matevz 0b1524d3b6 - Moved global.dm, which contains globel defines to a more dominant position, next to setup.dm. Changed some global constants to defines.
- Fixed a library problem which prevented you from ordering books by their SS13ID.
- You can now once again properly retitle books and change their authors.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3924 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-27 05:35:48 +00:00
Drieden 5d6f88caa0 Added a raw materials depot to the cargo bay and its associated sprite. 2012-06-26 23:26:11 -04:00
kortgstation@gmail.com 9d5acd9c52 Added Sly's Katana.
The cult tome/desk now gives off light.

The librarians back room is decorated with cult floors to go with the "forbidden knowledge" theme.

Removed the extra paper from the holo-deck.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3923 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-27 02:46:10 +00:00
Erthilo 2ba8581267 Fixes gauze/ointment not being applied to wounds. 2012-06-26 20:36:16 +01:00
unknown 5565c466e7 Merge branch 'master' of git://github.com/Baystation12/Baystation12 2012-06-26 21:46:03 +03:00
baloh.matevz 3a9cb11f68 - Added feedback logging for changeling power use.
- Changeling parasting now only affects muscles. It weakens you, but does not silence you. Added this to the changelog.

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3922 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-26 06:48:31 +00:00
mport2004@gmail.com 88c867ea25 Fixed a supply shuttle runtime due to the stamping missing a null check.
Added a null check to cleanbots and new player preferences.
Did a bit of blob and antimatter work.


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3919 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-26 01:20:19 +00:00
Erthilo 6aaceee446 TG: Fixed harmbatons on everything other than harm, now it is the opposite way
round.
Clarified swirlie failure feedback.
Revision: r3781
Author: 	 petethegoat
2012-06-26 00:10:30 +01:00
Erthilo 2c3e008f1e TG: Tiny little runtime fix.
Revision: r3780
Author: 	 elly1...@rocketmail.com
2012-06-26 00:08:41 +01:00
Erthilo bc8a0d2222 Apparently we don't have isemptylist() anymore. 2012-06-26 00:08:09 +01:00
Erthilo 622ce30803 TG: •Fixed silicon mobs not being able to access newscaster. It was a linkage error
on my part, newscaster system was made to handle ais but, at some points,
excluded them. Anyway, fixed.
Revision: r3779
Author: 	 polyxenitopalidou
2012-06-26 00:01:26 +01:00
Melvin Melonstorm 754a244073 Added a medbay (with rolling beds) and a holding cell to the destination of the escape shuttle.
Some minor typo fixes.
2012-06-25 20:58:01 +02:00
baloh.matevz 0007122cff - Added basic ban logging for DB_Ban. First step for the cross-server ban system.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3916 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-25 11:02:52 +00:00
trubblebass@gmail.com e92b98c491 - Fixed issue 589 , also fixed the other broken object paths while I was at it.
- Removed the surgery crate, the replacement Surgery tools can now be made in the autolathe

git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3915 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-25 01:09:40 +00:00
mport2004@gmail.com d085d77706 Fixed an issue where the blob core/nodes were eating themselves.
Readded the flashbang box desc.


git-svn-id: http://tgstation13.googlecode.com/svn/trunk@3914 316c924e-a436-60f5-8080-3fe189b3f50e
2012-06-25 00:27:35 +00:00
Erthilo 390782f544 Merge branch 'master' of github.com:Baystation12/Baystation12 2012-06-25 01:20:08 +01:00
Erthilo 67c5e8e3a8 Medical System Updates...
* Dragging someone while injured (brute) will have a small chance of injuring them further that increases depending on how damaged they are. This coincides with the blood spatters that are already generated.
* Blood is now actually lost from the person being dragged.

* Added splints that can be applied to broken arms and legs, and will reduce effects of broken limbs. These can be removed the same way as handcuffs. They show up on the mob and on examine.
* Added an autoinjector that can only hold five units, but acts like a hypospray.
* Added an advanced medical kit that Medical Doctors spawn with that has Advanced Trauma Kits, Advanced Burn Kits, autoinjectors, and splints.
* Health Scanners now show unsplinted fractures ONLY in arms or legs.

* People in critical (less than -50 health) from external trauma (100+ damage from brute and/or burn) bleeding, and with unsplinted limbs, will send a message to anyone trying to drag them, to warn them it would be a bad idea trying to move them. They will suffer a lot more damage if dragged while lying down.
* The correct procedure is therefore, A) Bring a roller bed, or B) Splint all limbs, stop all bleeding with gauze, and then drag them.

* Fixed CPR being performed at weird health levels.
2012-06-25 01:18:55 +01:00