Commit Graph

30081 Commits

Author SHA1 Message Date
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
Nick
e7a9bf4a6d Yet another db tickets bugfix #48854 2020-01-18 11:18:38 +13:00
JJRcop
e1d3148c6f Intercom examine tells you about :i (#48809)
* Intercom examine tells you about :i

If you're close enough to them

* Intercom exmaine message different depending on proximity

* Intercom examine isn't dynamic
2020-01-17 10:59:23 -05:00
skoglol
f8e507676f Fixes fugitives deadchat feedback (#48720) 2020-01-16 20:45:53 -05:00
cacogen
9c0e629a54 Fixes misleading info on brain damaged head examine (#48791)
Also punches up some of the other head descriptions
2020-01-16 20:42:51 -05:00
Fikou
725cb979d9 adds organs to the limbgrower (#48679) 2020-01-16 20:36:04 -05:00
OnlineGirlfriend
cce4c31c00 sausage can be sliced into salami (#48817) 2020-01-16 20:21:18 -05:00
nightred
8738287f11 FIXED: Better species environment handlers, and custom race body temperature (#48569)
* species can handle enviroment differently

* forgot slimes, removed environment check was a dupe

* slimes are now fixed, cleanup

* base living getting better math also

* ethereal lowered bodytemp, raised heat damage

* plasmamen were to cold

* old language thing in my fork

* min max to base proc that is better

* added item back, better docs

* better docs, moved a vars

* moved above vars in ethereals

* natural stabilization is fixed

* resist is better

* ashlizards needed more heat

* Comment updates

* fixed a comment

* better doc comment
2020-01-16 14:30:24 -05: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
AnturK
bca492823a Runtime fixes: Episode 113 (#48814)
* Fixes mood nanite settings

* Fixes yet another quirk runtime.

* Ugly paperplane fix

* Abductor armor runtime.

* cablecutting runtime

* Nukeop death runtime (were those spec deaths meant to fire on gibbing too ? )

* headpike runtime fix

* ERT outfit runtime

* bonfire oxygen runtime

* Rest of nanite updates
2020-01-16 11:16:37 -05:00
81Denton
d8068d5d06 hey, if you type in your pw, it will show as stars (#48797)
* *********

* *******************

* genius

* replaces if/else with var
2020-01-15 20:52:34 -05:00
ArcaneMusic
87aac02fcd Adds a new surgery, "Stomach Pump" (#48728)
* Fuck it, still not working but the work is at least started

* ALRIGHT we got this shit working off of existing procs now, no bloat :arm:

* Alright take 2, it's still not removing 2/3 instead of 1/10

* Alright this still isn't working fully. Thoughts?

* Attempted calling purge alone.

* Where I got before calling it tonight

* Re-adds bools.

* Alright cool, now 2/3 of the body's chemicals are being purged at a time, if this is too high, let me know.

* Renames the surgery to "stomach pump" to better match it's effects.

* Fixes leftover sprites from the organ PR, forgot to rename fully.

* FINE COBBERT
2020-01-15 16:53:44 -05:00
Rohesie
675a358b1b Moves mob stat var changes to a proc (#48760)
* set_stat

* Adds a signal.

* Signal comes before
2020-01-15 16:43:10 -05:00
TheChosenEvilOne
46f5743499 Changes supermatter to use the new beam icon. (#48754)
Signed-off-by: TheChosenEvilOne <tceo-email@protonmail.com>
2020-01-15 16:35:42 -05:00
nemvar
58ec03d9a9 Fixes mining vendor edge case (#48780)
* Fixes mining vendor edge case

* I swear, everyone starts acting like an idiot if they have to write a Topic proc.
2020-01-14 20:51:34 -05:00
Fikou
9d2c354d36 colossus now enrages on sandstone golems (#48774)
* web edit

* f*ck

* khfldsk;hfs

* shidd :-DD
2020-01-14 20:48:04 -05:00
Krysonism
a46ee0b2ab slurp (#48726) 2020-01-14 20:19:05 -05:00
skoglol
59278c55ba Reduces heart decay, ear damage slightly less bad (#48715)
* Reduces heart decay, ear damage slightly less bad

* Removes defib time limit
2020-01-14 18:31:16 -05:00
Buggy123
5efd5df30d Added cult major loss if Narsie is destroyed. (#48251)
* Added cult major loss if Narsie is destroyed.

* Minor corrections.

* Why did this compile?

* Minor fixes.

* Not bool

* Changed to defines as requested
2020-01-14 18:22:49 -05:00
skoglol
3efbc75623 Fixes straight jackets (#48749)
* Fixes straight jackets

* Moves parent call
2020-01-14 15:05:41 -05:00
skoglol
c20c02a013 Merge pull request #48550 from wesoda25/ethereal-charging
More ways for ethereals to charge
2020-01-14 10:35:22 +01:00
nemvar
828ebb20cf Allows calling procs in SDQL update queries without storing the return anywhere. (#48690)
* Adds everything that's needed for SDQL varedit macros

* Removes unused proc

* Allows calling procs in update queries without setting the return anywhere.

* Readds a line

* Removes file wrapper
2020-01-13 19:52:20 -05:00
Emmett Gaines
37a83ed511 Fixes hierophant barrier and blob structures allowing things through (#48746) 2020-01-13 17:59:30 -05:00
s
296608f2cc better 2020-01-13 17:27:47 -05:00
Kyle Spier-Swenson
ecd2622a75 Don't recheck connected clients in isbanned() (and other isbanned() dos mitigations) (#48583)
dos mitigation that likely won't fully work but let's see anyways.

backstory:

byond's ban system will automatically ban world/Topic flooders. Sadly updating byond's internal ban list causes isbanned() to get called on all connected clients. Also sadly: it does this every time it sees the world/Topic flood on the same ip, causing every connected client gets checked repeatedly for every flood message world/Topic sees.
2020-01-14 11:23:32 +13:00
JMoldy
454ad4fe44 Removes paralysis on meathook, rebalances damage (#48546)
About The Pull Request

Removes the stun on the hook to bring it in line with other weapons losing their stun. Reduces the brute damage, adds stamina damage.
Why It's Good For The Game

Paralyze as a weapon mechanic is no longer supported, this brings the hook in line with other modern stamina-damage weapons. It also brings the hook's armor penetration down to something closer to an armor piercing rifle round, rather than being an absolutely perfect armor penetrator.

cl
balance: Removes hitstun on meathook
balance: Changes meathook's damage from 25 brute at 100 armor penetration to 20 brute, 20 stamina at 60 armor penetration
balance: Changes the bounty hunter's meathook to do 40 stamina damage instead of a stun, adds a half-second knockdown.
/cl
2020-01-14 11:22:51 +13:00
ArcaneMusic
65485b9c54 Adds a new Tech to the B.E.P.I.S., Specialized Engineering, and a new Minor Reward. (#48507)
About The Pull Request

Round 2.
image
Adds a new tech to be unlocked within the B.E.P.I.S.'s major techs, called "Specialized Engineering". Within that tech are 2 new items, Heat Resistant Rods, and the Tinker's Gloves, as well as a new minor tech, the Survival Pen.
Heat Resistant Rods:
Have you ever wanted to expand Lavaland Base? Build a lava fortress worthy of your magnificence? Well, now you can! Using Heat Resistant Rods, you can make a catwalk to cross lava tiles, as well as build atop lava, without messy methods like using the RCD!
Tinker's Gloves:
This just in engineers, insulated gloves have new competition in town! The Tinker's gloves are complicated, overdesigned gloves that, while not very shockproof, allow for faster wall girder construction. No longer will you need to die of old age walling off an area when you're out of RCD ammo! Warning: This product contains no likeness to clockwork gauntlets used by the extinct cult of Rat'Var, and any such similarity is by no means intentional.

Survival Pen:
Have you ever been stuck on lavaland, trapped by your survival pod with just a few chairs, some titanium walls, and walls of ash closing in on you? Well THANK GOD you have your Rockbreaker brand Survival Pen! Allows for basic mining operations, and is portable like a standard pen!
BUT WAIT!
A watcher blocks your path. Thankfully, your expensive, diamond encrusted pen isn't just good for being the world's slowest pickaxe, it's ALSO coated in the one thing watchers crave: DIAMONDS. Toss the pen to draw the watcher's attention elsewhere.
Why It's Good For The Game

Starts to fill our B.E.P.I.S. Major Reward Techs, as intended, and fills a niche that doesn't get much play nowadays: Building on Lavaland. This was something I've had in the back of my mind since we did the first tests of the Disaster gamemode a few months ago, so each item here was made with the intention of improving the mining base should the station become un-livable. Lava-Proof Rods are beneficial in that you'll be able to cross and build over lava by the mid-end of the shift. RCDs still work as usual, but this way you won't have to worry about getting specialized engineering equipment as a member of cargo or science. The tinker's gloves are basically a variant of the nitrile gloves, but they grant a speed bonus to adding plating to metal girders, so that some kind of functional alternative to giving every engineer insulated gloves.
Survival Pens are quite honestly very niche, but getting dumb pens with extra functionality is a tradition of trade shows all over the world, so it feels right at home as a minor reward.

Also, does a tiny change to the doe sprites, just to look a little bit less old.
Changelog

cl
add: A new Technology has been implemented as a major reward in the B.E.P.I.S., Specialized Engineering, to appeal to engineering utility and new construction horizons.
tweak: Watchers will now actively consume diamond ore left lying around, alongside the new survival pens.
/cl
2020-01-14 11:21:40 +13:00
JJRcop
c314fbc6cb [READY] (nerf) Adds proximity crew pinpointer to Paramedics (#48418)
About The Pull Request

When #48236 was in progress, there was discussion about how a crew pinpointer was OP for paramedics. I immediately had an idea for a new one and made a PR to the paramedic PR. 81Denton asked me to make this its own PR after the paramedic PR was merged.

The proximity crew pinpointer does not point in the direction of the patient, but has a circle sprite that gets smaller larger as you get closer, so you have to search around, or combine it with the handheld crew monitor.

The circle is at maximum the smallest size after 29 tiles away, so you must be 28 or fewer tiles away for an indication that you are getting close. I welcome feedback on this. The handheld crew monitor can be used to find the area they are in.

proxpin

Demo video: https://youtu.be/_rXeJ49b-e8 (The pinpointer gets bigger rather than smaller now)

This is only attainable at the moment to paramedics as they spawn. Should it also be available elsewhere? now constructable from the Biological Technology techweb
Further changes

Moved Crew Pinpointer into premium nanomed items for 900 credits
Moved Handheld Crew monitor into premium nanomed items for 1750 credits, same price as before
Why It's Good For The Game

In #48236 it was stated that paramedics should start with the bare minimum equipment to do their job. The crew pinpointer that points them in exactly the right direction is pretty powerful, and this nerf will encourage them to either get used to the proximity one, or upgrade to the normal one at a price from the NanoMed or from techwebs.

Moving the Crew Monitor into premium was necessary to make it more of a luxury than an instant grab.
Feedback for nanomed premium prices on the normal pinpointer and the handheld monitor would help a lot
Changelog

cl JJRcop
add: New proximity crew pinpointer.
balance: Paramedic's crew pinpointer replaced with proximity crew pinpointer.
balance: The crew monitor was moved to premium items in nanomed, same with the handheld crew pinpointer
/cl
2020-01-14 11:18:55 +13:00
AnturK
8e94ad36a1 Fix santize_hexcolor (#48716)
This whole helper is a mess. Maybe I should just replace it completely 
instead.
2020-01-12 19:13:00 -08:00
Qustinnus
be23312096 New achievements and achievements icons (#48544)
* sdasd

* fixes

* fixed

* attempt 2

* Update skill_achievements.dm
2020-01-12 18:46:51 -08:00
Rob Bailey
179ad7026c tgui-next ntos chat (#48734)
I put way too much effort into this.
Also some new generic components.
Who cares nobody uses this.
2020-01-12 18:08:23 -08:00
zxaber
837564a41b Fixes Borg Emag Law 0 (#48729)
* Delete stale.yml

* Create stale.yml

* da fix
2020-01-12 13:06:03 -07:00
AnturK
9b662fc216 Fresh runtimes. (#48697)
* fixes vox nitrogen nonsense

* Gravgen runtime

* waterbottle throw impact runtime

* capitalize runtime

* dragon locker runtime

* xenobio cam runtime

* bad define fixup
2020-01-12 00:57:39 -05:00
Rob Bailey
4201bd2929 shuttle docking autodoc (#48677)
* docking port autodoc stuff

* Update shuttle.dm

* Update shuttle.dm

* Update shuttle.dm
2020-01-12 00:53:44 -05:00
Fhaxaris
c6759b6ceb Fixes all explicit occurrences of rand() being used incorrectly. (#48732)
It doesn't return non whole numbers just because you gave it a range of non whole numbers. So don't do that.
2020-01-12 00:20:38 -05:00
MrPerson
e22560a346 update_icon() improvements (#48669)
* update_icon() improvements

Fixes some update_icon() calls to properly call parent and use update_overlays() and update_icon_state().

The rest of obj/item fuck it

* Suggested fixes, also passes the linter

* I always forget . = ..() is faster than return ..() FOR SOME FUCKING REASON

* Actually this is better

* Signilzes datum/action to update its icon when its connected item does.
2020-01-11 23:46:43 -05:00
Fikou
8eee742734 [Ready] Adds ERP (#48699)
Adds a new emergency response team, the ERP! It stands for Emergency Response Party

the ERP includes:
-the coordinator: basically the captain of the operation, armed with a birthday cake, balloon and lots of fireworks to start the celebration
-the bouncer: the big boy, has a telebaton and an armor vest (if youre a loser you get a police hat too)
-the constructor: has tools, materials to build the party, disco tiles and an ethereal disco ball planter
-the cleaning service: your normal jannie, with his trusty mop, trash bag and cleaning grenades
-the comedian: a clown, armed with instruments, a bananium shield and chameleon suit/hat, for some comedy at the party
2020-01-12 13:31:13 +13: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
actioninja
118b95dacf mulebot fix 2020-01-10 20:05:13 -08:00
actioninja
db161a7570 Roulette Machine
initial work

more work

more roulette work

more work

more

yet more

FINALLY

small fixes

use global colors for last spun box

no low memory mode

cleanup

nuke old roulette assets

kills remaining 2 usages

forgot this var
2020-01-10 20:05:11 -08:00
skoglol
51236f08db Merge pull request #48613 from MarioWizard119/patch-1
Dark mode chat color tweaks
2020-01-11 03:52:58 +01:00
Unknown
58a2dcadbe a 2020-01-10 14:06:35 +01:00
LemonInTheDark
f4f8a686df Makes grounding rods consistent, changes the supermatters bolts a great deal. (#48472)
* Goof I will find you and I will berate you

holy hell

Calm and peaceful ahhhhh

I swear goofs pc failing was the biggest tragedy in gaming

Fixes some flags

More touchups

Now to squash

Goofs PC failing was the biggest tragady in GAMING

* Fixing some misspellings before the bee gets me

* GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

* Full vehicle support

* Changes some flags around, "fixes" some bugs, makes being shocked less insane

* Makes spliting more reasonable, unfucks some shitty tesla code I copypasta'd into the sm, godspeed shitcode,
none noticed you.

* Removes my tesla_ignore_1 fix, another pr is up that should solve things, so we're just leaving it in for now,
gonna have to deal with merge conflicts when it gets merged, but that won't be too bad

* tfw

* Nothing to see here folks

* I'm a boomer
2020-01-10 23:25:11 +11:00
ArcaneMusic
bf2d1b82fd Adds a new BEPIS Major Reward, "Australicus Security Protocols" (#48600)
* The hero returns alive.

* Initial commit, boomerang batons and outback firing pins.

* Australicus is the lore in the game already, so #@$! it we'll pretend like #lore_general exists

* Name tweak.

* Fixes boomerang name, Inhands, accidently included a leftover sprite.
2020-01-10 23:17:17 +11:00
wesoda25
030303d952 Ethereals now discharge electricity if their charge is too high (#48573)
* if this works i will be happy

* :(

* explosion

* brutemod

* george melons
2020-01-10 23:14:41 +11:00
Jordie
637e07c081 Merge pull request #48604 from SteelSlayer/signaler-tgui-next
tgui-next: Remote signalers
2020-01-10 23:08:04 +11: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
Ghom
f94fb3f578 Fixes Light Eater not overloading borg lamps. (#48640)
* Fixes Light Eater not overloading borg lamps.

* How to fool light eater's infinite lamp cooldown: flash yourself or take a nap. 👏

* I'm an idiot.
2020-01-10 22:30:23 +11:00
Jordie
3ef6beb0d9 Merge pull request #48637 from Ghommie/Ghommie-tg14
Fixes traitor codewords highlight and some other hear signal hooks.
2020-01-10 22:26:18 +11:00