Commit Graph

2660 Commits

Author SHA1 Message Date
ShizCalev
7209ac3c93 Removes unnessacary math defines 2020-02-17 23:09:09 -05:00
AnturK
18fe13c9f2 Ok, less build paranoia. 2020-02-17 15:01:14 +01:00
AnturK
52120c7728 Drops 512 support. 2020-02-17 15:01:14 +01:00
Aleksej Komarov
baf9bd2f95 REMOVES TGUI (#49330)
* Removes tgui

* Make tgui script executable again

* Set version of packages to 2.0.0

* Update copypasta docs to match the current best practice

* Rebuild tgui

* Update .github/CONTRIBUTING.md

Co-Authored-By: BadSS13Player <58376109+BadSS13Player@users.noreply.github.com>

* Remove holy bible by Arcane

* rebuild

Co-authored-by: BadSS13Player <58376109+BadSS13Player@users.noreply.github.com>
Co-authored-by: Rob Bailey <actioninja@gmail.com>
2020-02-17 04:51:56 -08:00
kevinz000
256d20cde0 Merge remote-tracking branch 'tgstation/master' into movespeed_modifiers_take_two 2020-02-17 05:50:27 -07:00
Emmett Gaines
9e34b3d6a1 Supports named arguments in AddComponent and AddElement (#49098)
AddComponent/AddElement now support named arguments. This requires passing around an argument list instead of using actual proc args which a bit gross but we can blame byond for forcing this.

InheritComponent uses mirrored init arguments instead of an argument list which means no more accessing it via index to get to the same arguments as in init.

As a small bonus I restructured dcs defines to be a bit more manageable. Mainly just splits them into separate files and gives them their own folder.
2020-02-17 17:57:52 +13:00
Fikou
730dc2d261 makes the nuke op leader getting the war declaration a config (#49279)
* the war declarator is now a config

* makes war ops a config

* makes war ops a config

* update 1

Co-Authored-By: Jordan Brown <Cyberboss@users.noreply.github.com>

* update 2

Co-Authored-By: Jordan Brown <Cyberboss@users.noreply.github.com>

* update 3

* ehh??

* grognak

* yes this works

* yeah ok togopal

* fuck

* heck

Co-authored-by: Jordan Brown <Cyberboss@users.noreply.github.com>
2020-02-13 21:08:26 -05:00
nemvar
797f2a8cb7 Shamelessly 850 useless lines 2020-02-13 10:53:39 +01:00
Neo
a98753b7a7 Removes an unused config (map rotation chance delta ) (#49297)
* fixes map rotation chance

* removes the config part 1

* part 2
2020-02-12 09:24:38 -05:00
Dingo-Dongler
6ea23349c1 Add citation functionality to the SecHud (#49017)
* PUT THE CAN IN THE TRASH

* max fine now a config opiton

* more proper hud check

* mention maxfine at citation, moving return correctly?
2020-02-11 20:25:35 -05:00
cacogen
9436ed69a8 Makes abductor baton child of stun baton (#48766)
* Makes abductor baton child of stun baton


- Clarify var names and reorder vars in baton defines
- Slightly simplify active baton wash code

* forget about ()
2020-02-07 14:53:14 +01:00
Jordan Brown
134d4d74a9 Merge pull request #49184 from peoplearestrange/master
Removes "Special Verbs" category & reorganises admin buttons categories
2020-02-05 09:44:30 -05:00
peoplearestrange
dce132b3e7 Changes Category
Trigger Event = Admin - Events
2020-02-04 04:45:44 +00:00
peoplearestrange
7c85e14c78 Change category
Load Away Mission = Admin - Events
2020-02-04 04:37:51 +00:00
kevinz000
49f4ce6212 Merge remote-tracking branch 'tgstation/master' into movespeed_modifiers_take_two 2020-02-03 14:14:22 -07:00
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
kevinz000
e13b3352bf Merge remote-tracking branch 'tgstation/master' into movespeed_modifiers_take_two 2020-01-24 13:25:09 -07: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
kevinz000
e5136f86b2 *yawn 2020-01-11 23:28:31 -08:00
kevinz000
c91e19c442 Merge remote-tracking branch 'tgstation/master' into movespeed_modifiers_take_two 2020-01-11 22:17:04 -08:00
kevinz000
63d54e3e4f PAIN 2020-01-11 22:11:29 -08: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