Commit Graph

3020 Commits

Author SHA1 Message Date
Tad Hardesty
80570931d1 Fix various macro consistency problems (#37092) 2018-04-11 13:20:57 +03:00
Bjorn Neergaard
d7966ced09 Use a rust DLL for logging (#36858)
By moving our logging to a DLL we see a drop in CPU/real time of 2-3 orders of magnitude. This is due to BYOND opening and closing file handles on every write, causing incredible amounts of unneeded overhead. The logging library also handles timestamps for us, further increasing performance gains.

This library will also allow for further offloading in the future, such as completely replacing file2text() and friends.

A pre-compiled DLL is bundled, but Linux users will have to compile manually. Directions can be found at the rust-g repo.

Log output is enhanced with millisecond time stamps:

[2018-04-01 15:56:23.522] blah blah blah

This includes runtimes as well, which benefit from the same timestamp improvements and no longer have hacky splitting code to add their own timestamps.

Log shutdown is handled in a dedicated proc called as late as possible, as rust-g integration expands this will be factored out into a generic native code shutdown proc.
2018-04-11 10:01:31 +12:00
Jordan Brown
9b6a332a1c Merge pull request #36956 from vuonojenmustaturska/anchorbin
Fixes trash bin wrenching message
2018-04-06 10:08:10 -04:00
kevinz000
0c27e227cc Latejoin Silicons (#36560) 2018-04-05 10:09:52 +02:00
Armhulen
c45a98e559 podpeople, wishgranter victims, and clones no longer get 0 as one of their affixes (?) (#36733)
* yeeeeeeeeeeap

* i turned myself into a commit morty!

* I'M COMMIT RICKKKKKKKK

* tinydwarfy was an inside job

* *reels in pain* you KNOW I DON'T LIKE PISTACHIOS

* WOO
2018-04-04 11:11:31 +12:00
John Ginnane
ff20954971 Fixed sometimes using items on full storage items (#36711)
* Fixed sometimes using items on full storage items

* Removed redundant code and fixed spray being used on container
2018-04-04 11:02:44 +12:00
vuonojenmustaturska
8031468268 Remove superfluous override 2018-04-03 21:12:59 +03:00
Jordan Brown
cde5a4f44a Merge pull request #36901 from KorPhaeron/beeper
Fixes morgue beeper message
2018-04-02 09:31:17 -04:00
KorPhaeron
2653c5e80f Fixes beeper message 2018-04-01 08:16:56 -05:00
Cruix
251c54223d Added a new ability to sentient diseases (#36548)
* Replaced body zone magic strings with defines

* Added the Secrete Infection ability to sentient diseases, and updated the infective component
2018-03-30 21:09:19 +02:00
RandomMarine
46b89cce88 Fixes plasma window fire armor 2018-03-28 13:38:58 -05:00
John Ginnane
c3627c2741 Adds guillotine (#36540)
* Add guillotine to the game

Can be found in BoxStation's courtroom. Also added some sounds to the clap emote, which is used during execution

* Made requested changes

* minor typo

* Updated code

* Added crafting recipe and removed from map
2018-03-28 10:41:03 +13:00
arsserpentarium
92fe820f3d [READY]pathfinding circuitry upgrade (#36398)
* all in one

* fixfixfix

* uhhhh

* demuxdemuxdemuxdemux

* wire eriw

* icon noci

* tihsxifixshit

* rewopower

* fixif

* screeneercs

* returnruter
2018-03-26 19:01:34 +03:00
Jordan Brown
36d059674d Merge pull request #36677 from AutomaticFrenzy/patch/sign-backings
Fix unwrenching and placing directional signs
2018-03-25 10:06:36 -04:00
81Denton
83c4bde9ec Plastic flaps are now airtight (#36659)
* flaps

* fucking flaps, how do they work?
2018-03-24 22:01:31 -05:00
Tad Hardesty
8b87d70920 Fix sign backing items rotating when pulled 2018-03-23 21:37:39 -07:00
kevinz000
f300a5c155 Interaction/Attack Hand Refactor (#36405) 2018-03-23 11:20:54 +01:00
Ian Turk
fbe5f4a062 Replaced body zone magic strings with defines 2018-03-19 15:44:51 -05:00
Qustinnus
4911991f70 [READY] Several fixes/changes to mood, longterm mood effects, beauty component (#36344)
cl Floyd / Qustinnus
del: Removes short-term effects of mood
add; Adds long-term effects of mood by implementing sanity which goes up with good mood, down with bad mood, but takes time to change. Your sanity can be seen as your average mood in the recent past. All effects of moods are now covered by this system
add: Beauty component, currently only attached to cleanables, but you could attach it to any atom/movable and make them pretty/ugly, affecting mood of anyone in the room.
refactor: Removes the original way of adding mood events, uses signals properly instead.
fix: Cleanables "giving" area's free beauty during initialization
fix: Fixes some events not clearing properly
/cl

Fixes #36444

From now on mood no longer affects you directly, instead it decides whether your sanity goes up or down, when your sanity gets too low you will get the effects of what mood did before.

This means getting hit with bad moods due to being attacked while not mean you are doomed anymore, and you get a large timeframe to get away and just fix your mood later.

I also added the beauty component, you could add this to any object and it would either make a room prettier or uglier, comparable to DF or Rimworld. You could add traits to make certain people ugly, for example.
2018-03-18 19:48:50 +13:00
kevinz000
fe5fdec776 [READY] Refactors wet floors to a component (#36130)
* Wet Floor components

* No more turf wet slide.
2018-03-17 11:26:09 +13:00
oranges
76576e384a Merge pull request #36079 from deathride58/nerfstheskylarlinemanexperience
[S] Fixes tables being bluespace magnets
2018-03-17 11:25:29 +13:00
oranges
2b07ea6f23 Merge pull request #36371 from ShizCalev/false-wall-layer-fix
Fixes false wall layering
2018-03-17 11:23:47 +13:00
oranges
c7d42c49b9 Merge pull request #36432 from ShizCalev/braindamageeventruntime
Fixes brain damage json runtime
2018-03-17 11:18:41 +13:00
ShizCalev
2211eb0bc1 Fixes brain damage json runtime 2018-03-15 00:05:17 -04:00
cacogen
5e0428c2c8 Makes transit tubes take half as long to secure/unsecure (#36345)
* Makes transit tubes take half as long to secure

Takes ages to build anything meaningful when each pipe takes four seconds to fasten to the floor.

* Halves time to deattach transit tubes

Should be just as easy to get rid of as they are to build

* Update transit_tube.dm

* Update transit_tube_construction.dm
2018-03-13 23:04:21 -06:00
deathride58
6b0978b704 Merge remote-tracking branch 'refs/remotes/tgstation/master' into nerfstheskylarlinemanexperience
# Conflicts:
#	code/game/objects/structures/tables_racks.dm
2018-03-13 15:49:25 -04:00
ShizCalev
e7e8ac00da Fixes false wall layering 2018-03-12 16:43:35 -04:00
XDTM
193f7682d7 You can now non-violently place people on tables (#36150) 2018-03-10 02:45:29 -06:00
ShizCalev
bfd724e12d Fixes mirror var desync (#36251) 2018-03-10 02:20:38 -06:00
Dax Dupont
cffedcf7c1 Display cases can now have a list where to randomly spawn items from (#36058)
* Adds allowing display cases to pick from a random list

Keeps compatibility with older maps and moves trophy/plaque message to all display cases

* A bit more legible

* Refactors statues tool interaction code

* Don't override it already exists

* done
2018-03-09 09:17:57 +01:00
Armhulen
84d4b3aae6 Mushroom people, revived! (#35858)
* caps fixed, small other fixes and mushpunch

* honey, i fixed the bugs!

* STUPID YORII DUMB GIRL STINK LEAVE

* boolean is such a fun word

* zoinks

* F_XED

* fixes part 2

* TRUEs and FALSEs

* don't drink and code boys unless you're goofball or like maybe kor

* for entirely different reasons i mean

* at what point is goofball too drunk to troll but not drunk enough to shitcode

* cool your jets, travis.

* what a TRAVIS-TY

* mush added to yet another blacklist!
2018-03-07 21:34:56 -06:00
kevinz000
28b1fb254d RND TECHWEBS: TECHFABS (#36055)
Doing my little update piece by piece because I'm lazy and because storage PR is going to conflict everything ever.

Techfabs do not link to RND consoles, and have their own interface for producing things.
RND production machinery code refactored.
Techwebs have categories views instead of just a goddamn design list.
Old machinery will be kept in, as some places will keep them. Read: Engineering, robotics, etc.

experimental: Protolathes and circuit imprinters combined/changed to techfabs. All departments can now print related circuit boards. Engineering and science will keep their lathe/imprinter design by default at roundstart because they have specialized labs for those.
2018-03-08 15:09:44 +13:00
deathride58
6aa21c1dea Update tables_racks.dm 2018-03-07 20:45:06 -05:00
Qustinnus
5140cff38c [reviewpls] Adds moodlets to the game - [Please give suggestions for trait additions in comments] (#35475)
Floyd / Qustinnus (Sprites by Ausops, Some moodlets by Ike709)

add: Adds mood, which can be found by clicking on the face icon on your screen.
add: Adds various moodlets which affect your mood. Try eating your favourite food, playing an arcade game, reading a book, or petting a doggo to increase your moo. Also be sure to take care of your hunger on a regular basis, like always.
add: Adds config option to disable/enable mood.
add: Indoor area's now have a beauty var defined by the amount of cleanables in them, (We can later expand this to something like rimworld, where structures could make rooms more beautiful). These also affect mood. (Janitor now has gameplay purpose besides slipping and removing useless decals)
remove: Removes hunger slowdown, replacing it with slowdown by being depressed
imageadd: Icons for mood states and depression states


What this PR is

This PR adds a system that allows player to gain and lose moodlets based on events occuring to, and around them. These events then give the player a mood value based on what it is. For example a hug could give you +1 mood, while being stabbed in the eye with a screwdriver can give -5 mood. All these moodlets together determine the mood of your character which currently affects the following things:

    Movement speed - If you are very sad you move slower. Replacing movement slow from hunger. (hunger now instead affects mood)
    Screen blur - If you are sad you gain an overlay that slightly blurs the screen, increasing in severity as you get sadder.
    Interaction / do after speed - If you are sad or happy your interaction speed with things such as handcuffs is changed. with a 25% longer time if you are sad, or 10% shorter time if you are extremely happy.
    Hunger rate - You gain hunger slower if you are very happy.
2018-03-08 14:15:57 +13:00
Cameron!
083eefb6b9 Adds Medical Sprays (#36081)
* Adds Medical Sprays

Medsprays are a new application method for chemicals, functioning like a multi-use patch with an internal chemical reservoir.

This allows touch chemicals to be applied more precisely and with a delay, rather than instantly and imprecisely with a spray bottle.

Pre-loaded medsprays with styptic powder or silver sulfadiazine can be obtaiend from the NanoMeds, and empty ones will spawn in the secure chemical locker.

They will also come from the medical pack from cargo.

* Update packs.dm

* Volume adjustment, attack_self addition

* Adds Medical Sprays

Medsprays are a new application method for chemicals, functioning like a multi-use patch with an internal chemical reservoir.

This allows touch chemicals to be applied more precisely and with a delay, rather than instantly and imprecisely with a spray bottle.

Pre-loaded medsprays with styptic powder or silver sulfadiazine can be obtaiend from the NanoMeds, and empty ones will spawn in the secure chemical locker.

They will also come from the medical pack from cargo.

* Volume adjustment, attack_self addition

* Adds Medical Sprays

Medsprays are a new application method for chemicals, functioning like a multi-use patch with an internal chemical reservoir.

This allows touch chemicals to be applied more precisely and with a delay, rather than instantly and imprecisely with a spray bottle.

Pre-loaded medsprays with styptic powder or silver sulfadiazine can be obtaiend from the NanoMeds, and empty ones will spawn in the secure chemical locker.

They will also come from the medical pack from cargo.

* Volume adjustment, attack_self addition

* Forgot this

* removes unnecessary/annoying check

* replaces deprecated sterilizer spray bottles on Pubby

* Applies MrDoomBringer's sprites

* new sprites, by @MrDoomBringer

* two-line shuffle

* fixes double entry

* Adds logging

* code standards
2018-03-06 13:37:25 -05:00
Iamgoofball
5e65110b5f SOMETHING'S WRONG, I HOLD MY HEAD, BILLY HERRINGTON IS FUCKING DEAD (#36121) 2018-03-04 14:57:39 -06:00
Tad Hardesty
ad3533e6e9 Merge pull request #36054 from AutomaticFrenzy/patch/fancy-tables-2
Fix placement of fancy tables in the editor
2018-03-03 17:31:15 +11:00
deathride58
6f7e7f1a59 nerfs criticism 2018-03-02 12:30:30 -05:00
deathride58
a2092b1685 You can no longer push someone onto a table that's across the entire fuckin map 2018-03-02 00:46:34 -05:00
Ashe Higgs
ab9e2e8902 Adds minor roundstart traits! (ala CDDA, etc.) (#35440)
* Roundstart traits

* Unspaghettifies night vision

* Fuck everything

* Issues patch
2018-03-02 13:39:44 +13:00
Ashe Higgs
d1edd8f505 Alternative PR to brass apples: Adds bronze sheets (#35874)
* Adds bronze sheets

* nope!
2018-03-02 13:35:58 +13:00
Tad Hardesty
0b336ed1fa Fix icon of black fancy table in editor 2018-02-28 16:44:20 -06:00
kevinz000
6c0974d1a5 Revert "Mekhi goes on the table" 2018-02-25 15:23:27 -08:00
BordListian
6da8820fee Fixes negative bodytemp in some cases and shivering not doing anything unless you're already very cold (#35796)
* - Stop subtracting from bodytemp please
- Also fixes shivering

* - Jesus christ why did you make me do this

* - missed one
2018-02-23 21:34:53 +02:00
ShizCalev
0de3dae689 Lets silicons disable morguetray alarms at range (#35855) 2018-02-23 14:27:28 +02:00
nicbn
53537c9f6a Update morgue.dm (#35883) 2018-02-22 20:40:17 -05:00
Buggy123
d7244bc0d3 tabling people on brass tables makes a clanging sound (#35876)
* tabling people on brass tables makes a sound

* fixes syntax

* more syntax fixes
2018-02-22 14:31:03 -06:00
QualityVan
c91cdd7380 Adds five second cooldown to morgue tray beeps (#35818) 2018-02-21 23:47:59 -05:00
Buggy123
fb564b6981 Makes the morgue beep disable step clearer
cl
tweak: Nanotrasen has begun a campaign to inform their employees that you can alt-click to disable morgue tray beeping.
/cl

If its annoying you literally just alt-click to disable it. There's basically no situation where you would be able to hear it without being able to turn it off, except maybe the one morgue tray in the brig if you don't have access to the windoor (but just fucking ask sec to disable it).
2018-02-22 09:26:03 +13:00
Ashe Higgs
e54ccddec8 Adds the dish drive, obtainable through techwebs and with circuit boards in the chef and bartender's lockers (#35759)
* Adds the dish drive

* a e s t h e t i c

* Puts a dish drive circuit in the chef locker

* wardrobes, better control

* shiz!

* shiz! (x2)
2018-02-20 18:09:59 -05:00