Commit Graph

2441 Commits

Author SHA1 Message Date
Emmett Gaines
2f7a273aea Moves list creation to material init 2020-02-03 12:40:44 -05:00
Emmett Gaines
ab3a127295 Makes the global materials lookup lazily initialized 2020-02-03 10:17:13 -05:00
AnturK
14cd32efd8 Another runtime fix pr (#49095)
* Fixes whisper sanity.

* Fixes rebuild runtime

* Fixes removing atmos machinery from resumed runs.
2020-02-02 08:15:43 +13:00
blessedmulligan
54dc879f19 Cyborg spin throwing now depends on intent (#48891)
Trying this again. When *spin-ing as a cyborg, the way mobs are thrown off you depends on your intent. On help intent, they will be thrown a shorter distance from you and will never be damaged or stunned (they will still be knocked down). On harm intent, they will be thrown the current distance and will be damaged and stunned if they hit a wall or another person.

WHAT THIS ACTUALLY CHANGES:
Currently, whether or not *spin-ing will actually hurt/stun someone depends on whether or not the *spin-ing borg is emagged. This PR also reduces the range of the help intent throw, but since the knockdown happens whether or not the thrown mob hits something this is in most circumstances a cosmetic change. So, in summary, if you are a non-emagged borg in help intent the only thing this changes is you will chuck people a slightly shorter distance.
Why It's Good For The Game

This isn't exactly the most important change, but a borg should be able to control their behavior. Having damage/stun from throwing determined solely by emag-ness seems more like a hacky kludge than a legitimate design choice. Also, having the behavior of borg-throwing determined in the code for carbons is messy.
Changelog

🆑
add: The behavior of cyborg's *spin emote now changes with intent; on harm intent, it will throw its passenger farther and damage and stun them if they hit a wall or another person.
/🆑
2020-02-01 20:30:57 +13:00
vuonojenmustaturska
40657c9ccd removes a bunch of unused/bad helpers (#48969)
* a commit

* Update code/controllers/subsystem/persistence.dm

Co-Authored-By: Emmett Gaines <ninjanomnom@gmail.com>

* Update code/__HELPERS/text.dm

Co-Authored-By: Emmett Gaines <ninjanomnom@gmail.com>

* Update advance.dm

* Update security_officer.dm

* Update text.dm

* Update unsorted.dm

Co-authored-by: Emmett Gaines <ninjanomnom@gmail.com>
2020-01-28 16:22:20 +01:00
TheVekter
97b5ec2117 Adds a function to grant research points for slime extracts (#48807)
* Adds a function to grant research points for slime cores

* I meant to change it to 1k points before pushing

* changes slimes so they give different points based on what tier they're on

* A few fixes and more efficient code

* Adds sanity checks, used extracts can't be cashed in

* Refactored code
2020-01-24 11:16:29 +01:00
Rohesie
7bef84f009 Mass-replacement of stat to machine_stat (#48758)
Living and machine stat vars are pretty different, one uses flags and other number-defines.
This should make some other mass-replacements and searches a bit easier.
2020-01-24 12:37:17 +13:00
Emmett Gaines
d86321a64c Updates BINARY_INSERT to be a bit more flexible (#48831)
Makes use of the do while(FALSE) trick to give it its own context and makes it possible for the inserted value to be different from the compared value so #48747 can use it.
2020-01-23 13:00:45 +13:00
JJRcop
5b761072cb [READY] Roundstart spawning without job landmark puts you on shuttle (#48821)
About The Pull Request

Discovered via paramedics missing their start landmarks, jobs without landmarks would spawn on the last landmark to be loaded in the map. This appears to not have been intended, and they now spawn on the arrivals shuttle if available. If that fails they spawn in the error room.

I am touching job distribution code so I'd like this to be testmerged for a bit before getting merged.
Why It's Good For The Game

This is a bug in an error condition, so it will only show up if there are map bugs, which is why we haven't uncovered it for so long.
Changelog

🆑 JJRcop
fix: Jobs missing spawns will spawn on the arrivals shuttle.
/🆑
2020-01-20 10:50:36 +13:00
Kyle Spier-Swenson
4d1c252827 SSprofiler performance enhancements (#48861)
* Log fetch and write costs in SSprofiler.

* Update profiler.dm

* Update profiler.dm

* Add performance enhancements 

This should ensure it doesn't lag the server too much.

* Minor text changes
2020-01-19 01:24:42 -05:00
MrPerson
f7eb2c905b Unicode awareness Part 2 -- copytext() (#48512)
* Unicode support Part 2 -- copytext()

This is the transition of all copytext() calls to be unicode aware and also some nearby calls in the same functions. Most things are just replacing copytext() with copytext_char() as a terrible character limiter but a few others were slightly more involved.

I replaced a ton of
````
var/something = sanitize(input())
something = copytext(something, 1, MAX_MESSAGE_LEN)
````

with a single stripped_input() call. stripped_input() already calls html_encode(), trim(), and some other sanitization so there shouldn't be any major issues there.

This is still VERY rough btw; DNA is a mess, the status displays are complete ass, there's a copytext() in code\datums\shuttles.dm that I'm not sure what to do with, and I didn't touch anything in the tools folder. I haven't tested this much at all yet, I only got it to compile earlier this morning. There's also likely to be weird bugs until I get around to fixing length(), findtext(), and the rest of the string procs.

* Makes the code functional

* Assume color hex strings are always # followed by ascii.
Properly encodes and decodes the stuff in mob_helpers.dm which fixes some issues there.

* Removes ninjaspeak since it's unused
2020-01-18 13:07:22 +13:00
skoglol
feecf28fa5 Merge pull request #48616 from cacogen/wayfindingpinpointers
Fixes wayfinder dispenser sprite/lowers amount of pinpointers from it/adds pinpointer recycling
2020-01-17 10:58:27 +01:00
Nick
fa941a4410 Update blackbox.dm (#48844) 2020-01-16 23:54:28 -05:00
cacogen
90fe68763d Less wayfinder pinpointers from dispenser 2020-01-17 12:28:01 +13:00
Nick
c758bdd51c [Ready] Database Tickets (#48727)
* DB ticket procs

* Schema changes for DB tickets

* Schema version update

* Fixes requested by Jordie

* SQL updates

Adds a recipient column

* Still one dangling issue where this DOESN'T WORK

* Alright, this should work

* Requested SQL fixes

* Rogue changes

* less bad defaults

* utf8 for the utf8 gods

* aaaaaa

* Update tgstation_schema_prefixed.sql

* Update tgstation_schema.sql

* Update database_changelog.txt

Co-authored-by: Jordie <4343468+Jordie0608@users.noreply.github.com>
2020-01-17 05:35:16 +11:00
spookydonut
3195ceaa22 Update SpacemanDMM suite to 1.2 (#48785)
* Update SpacemanDMM suite to 1.2

* Fix new lint errors
2020-01-16 11:49:39 -05:00
skoglol
03b4540cbc Merge pull request #48708 from ExcessiveUseOfCobblestone/im-not-new-ok
Waypoint Finders now properly pull living playtime
2020-01-11 05:41:03 +01:00
Bobbahbrown
0b32b5c938 Format Change of Health Analyzers + scanners.dm Cleanup (#48595)
* VERY cool no more stink (less)

* LIST GAAANGLIST GAAANGLIST GAAANGLIST GAAANGLIST GAAANGLIST GAAANG
2020-01-10 22:59:47 +11:00
ExcessiveUseOfCobblestone
fe40dfea6e b 2020-01-09 22:29:50 -05:00
AnturK
6a62a139a8 Basic auto profiler (#48672)
* Basic auto profiler

* Makes it update periodically in case of crash.

* informative comment.

* Early start & config upgrades.

* Fixup
2020-01-09 19:32:57 -05:00
Arkatos1
fb416d9f10 Simple mob alerts (#48646)
Simple mob alerts
2020-01-09 05:53:57 -08:00
skoglol
8206b1e1cb Map rotation touchup, automatic map votes (#48602)
* Map rotation touchup, automatic map votes

* votes already running

* Pre-init vote restrictions

* No rotation for rounds less than 10 minutes.

* Splits voting preferred map check

* Fixed comment
2020-01-07 09:46:49 -05:00
ArcaneMusic
a6f5cc8499 Alright, fine, we'll stick with 64 for now. Just in case. 2020-01-06 16:44:08 -05:00
ArcaneMusic
cf03da347a Lowers the value to a more manageable 32 maximum mice, fixes config, grammar clarification 2020-01-06 04:15:57 -05:00
ArcaneMusic
f49f705ad4 Merge remote-tracking branch 'upstream/master' into mousescience 2020-01-06 03:39:53 -05:00
cacogen
3418be2e16 kriskog changes 2020-01-05 16:43:47 +13:00
cacogen
a1d9b4c261 Removes unnecesssary proc
Co-Authored-By: moo <11748095+ExcessiveUseOfCobblestone@users.noreply.github.com>
2020-01-05 16:43:47 +13:00
cacogen
29104ccc1e Navigationally Challenged quirk
Spawn with wayfinder. Automatically given to clients less than 7 days old.
2020-01-05 16:43:47 +13:00
ArcaneMusic
cf83c4d081 Global Variable and config option 2020-01-03 22:40:24 -05:00
TheChosenEvilOne
0320d2b894 "Save yourself some trouble and put the turf in a var beforehand"
Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>
2020-01-03 23:25:48 +02:00
TheChosenEvilOne
36611cc839 just like that, issues are gone™️
Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>
2020-01-03 23:24:51 +02:00
TheChosenEvilOne
acd7dd6aeb Drop the pod
Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>
2020-01-03 19:07:16 +02:00
TheChosenEvilOne
9544ed5ae2 Reviews
Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>
2020-01-03 16:40:17 +02:00
TheChosenEvilOne
99a7c9527f Merge remote-tracking branch 'origin/master' into market 2020-01-01 17:42:30 +02:00
skoglol
c2dac45fcf Readds map diversity (#48446)
* Restricts map votes

* votable

* Fix novotes, define, fexist

* And one more define
2019-12-30 17:44:10 -05:00
81Denton
0564d6609f Moves shuttle related logs into a new log file (#48441)
* Logs shuttle computer usage

* Adds a separate shuttle log

* Adds missing logs to INDIVIDUAL_SHOW_ALL_LOG

* no message
2019-12-30 15:56:05 -05:00
TheChosenEvilOne
0b60adddcc Merge remote-tracking branch 'origin/master' into market 2019-12-26 20:00:54 +02:00
ArcaneMusic
e39eea7b17 [Ready] Adds a new RnD method, the B.E.P.I.S. (#48040)
* Squashes Commits, has BEPIS, Techs, TGUIs, Rewards, and fixes.

* Makes rewardable techs a variable in all_nodes, and removes RnD Points rewards from the minor reward pool.

* Fixes conflict with pubby and beam icon.

* Review comments and basic cleanup A

* Review Comments and basic cleanup B, also cleans up icon states to work fluidly.

* Map Update

* Indentation, flipped Update_decal_path, and rebuilds tgui

* One last clean up of icon_state, adds the last bit of changes from review, and that should be everything.

* Alright last change for real I swear 105%

* Last change, adds simple sanity check for silicons.

* Moved Human and card variables into ui_interact.

* Fixes map conflict

* Alright Review Round 2 Part A, Fixes Grammar, splits polycircuit into it's own file, UI QOL improvements, Withdrawing credits, changes from arbitary values on the mini RLD, etc.

* More review bits, Part 2:B. Easier returns for less processing, Defines, fixes the merge conflict and updates the UI with new buttons. Just need to figure out Button Mapping for the UI and Duplicate prevention.

* Implemented duplicate tech protection. Yeet.

* Get back in there you

* Alright why are you breaking on me god damnit.

* It's optimized, closer to god, nearly perfect, all together it's ready to ship.

* Cleans up all of the decal painter, shorter, cleaner, works around all the turf_decal quirks.

* Tab spacing on github will look fucky

* More review changes.

* Uses use_power == ACTIVE_POWER_USE instead of powered except for the UI
2019-12-25 23:48:28 +01:00
TheChosenEvilOne
dc56886ef4 a 2019-12-22 11:44:13 +02:00
AnturK
961002f1d0 Fixes random parallax layer. (#48287) 2019-12-21 18:40:41 +01:00
TheChosenEvilOne
c269caa370 Merge remote-tracking branch 'origin/master' into market 2019-12-20 20:30:22 +02:00
TheVekter
44548a0686 E.X.P.E.R.I-Mentor Overhaul Part the First: Research Notes (#48238)
* Modifies the amount of research gained per Strange Object scanned, adds bad things

* Reduces the amount of research produced passively

* Increases spawn rate for strange objects and adds 2 guaranteed spawns to each map

* I'M WEB EDITING AND NOBODY CAN STOP ME

* Refactor
2019-12-16 18:25:21 +01:00
PKPenguin321
b4b27118ea Cleans job.dm (#48242)
* cleans job.dm

* readds some code with a comment
2019-12-15 14:11:30 -05:00
TheChosenEvilOne
3afeb32487 forgot I renamed the var.
Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>
2019-12-12 22:22:13 +02:00
TheChosenEvilOne
ad36339586 Items now actually get added to the market.
Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>
2019-12-12 22:07:41 +02:00
TheChosenEvilOne
08619b9418 Merge remote-tracking branch 'origin/master' into market 2019-12-12 18:14:38 +02:00
TheChosenEvilOne
97cd9d9f64 self review best review
Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>
2019-12-12 18:13:44 +02:00
spookydonut
48439a66dc makes these stacktraces 2019-12-10 19:01:48 +08:00
spookydonut
175439f63a Removes unreachable code (#48143)
About The Pull Request

As detected by SpaceManiac/SpacemanDMM#123
2019-12-10 20:52:13 +13:00
MrPerson
e8ba7a1f68 Solar improvements (#48110)
Improves the code for the solar panels a lot. It's still pretty bad but to make it better I'd have to dive into powernets.

Solar panels visually rotate a full 360 degrees instead of being locked to ordinal directions only. In 513 this uses vis_contents, in 512 it uses a regular overlay that needs to be reset constantly.
Adds a signal from the sun SS when the sun moves.
Timed tracking is now measured in degrees per minute instead of degrees per hour.
2019-12-09 13:47:57 -05:00