Commit Graph

2036 Commits

Author SHA1 Message Date
LemonInTheDark
df9d859da8 Fixes tesla bugs, makes code better (#49260)
* Cleans shit up, adds some upper limits on zap count, makes explosions less commen. Need to fix apc issue before
I test how it plays

* Mood, buffs and nerfs tesla

* Cherry-Picking

* eyyo

* back to basics

* aight

* broooooooooooooooooo

* adds else

* range

* fixes shit

* Sure

* Cleans shit up

* Fixes prob issue

* Gee I like this spooky guy

* I swear to god if prob picks just makes a list I am gonna blow a gasket
2020-02-27 12:06:52 +01:00
LemonInTheDark
7d1b96fb6c Wew god (#49593) 2020-02-26 16:58:56 -05:00
Arkatos1
395b8cb29f Gas Turbine UI (#49485) 2020-02-25 16:21:45 +01:00
ShizCalev
7209ac3c93 Removes unnessacary math defines 2020-02-17 23:09:09 -05:00
JJRcop
a1392847bd Remove ismovableatom macro (#9) 2020-02-17 15:03:16 +01:00
AnturK
52120c7728 Drops 512 support. 2020-02-17 15:01:14 +01:00
yeeyeh
e14313b9e6 Adds spray-on insuls. (#48996)
* Adds spray-on insuls

* gloves go bye bye if you lose an arm

* whoops

* merge conflicts? in MY pr? its more likely than you think

now featuring Signals™

* travis you fuck

also adds feedback if you cant spray them on

* forgot to remove a commented out line

* Removes snowflake

that moment when you lose all motivation to code after getting a review so you put it off for a week and then it goes stale 5 minutes after you start working on it again

* Uncurses gloves

* formalities

thank you arcane man

* formatting fix

i swear i used the tab button but i guess i am just cursed

* thank you strange bee creature

thank you strange bee creature

Co-Authored-By: Bobbahbrown <bobbahbrown@gmail.com>

Co-authored-by: Bobbahbrown <bobbahbrown@gmail.com>
2020-02-16 18:01:05 -08:00
LemonInTheDark
0112585de8 Fixes SM hell, makes some changes to how gas is handled in the SM (#49081)
* Fixes comp, makes admeme happy

* Makes spindown instant

* Comments
2020-02-16 11:25:41 +01:00
nightred
9e46901b02 Lighting night mode togglable when locked (#49359)
* night mode toggle when locked

* razel frazel tgui building
2020-02-16 17:14:57 +13:00
cacogen
dd7b061488 Unanchored solar assemblies go off-centre to indicate they need securing. Anchored ones centre themselves (#49303)
* Random pixel offset for unanchored solar assemblies

Set to 0 when anchored

* better var names
2020-02-12 09:29:46 -05:00
MMMiracles
3a3e4db192 MultiZ Deck Relay Tweaks (#49053)
* relays now properly update powernet when being disconnected/destroyed, doesn't use processing anymore

* parents

* no break thx
2020-02-12 13:08:18 +01:00
ShizCalev
5120db8194 Attacking the SM with an item that's stuck to you will now dust the user. (#49133) 2020-02-04 07:21:22 +01:00
ShizCalev
3055b70349 emitter cleanup and fixes (#49129) 2020-02-04 07:14:41 +01: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
spookydonut
ac7f2b5166 Fix Crossed/Entered/Exited/Bump/ui_act parameter casting (#49016)
About The Pull Request

Detected as part of my work on SpaceManiac/SpacemanDMM#167
2020-01-28 10:51:15 +13:00
AnturK
b04934a0d1 Fixes runtimes & some cleanup (#48776)
* Keyless emote sanity.

* Camera bug runtime

* SM runtime

* Removes random <br>'s in atmos logs

* light spark runtime

* uranium splashing on walls runtime

* throwing clown with clown shoes runtime.

* beam rifle runtime

* Don't warn on mesageless keyless emotes.

* Fixup
2020-01-24 13:23:59 -05: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
Qustinnus
9e90e09597 Adds a new BEPIS design; The Mauna Mug (#48599)
🆑 Kryson & Qustinnus
add: New BEPIS design; a self heating mug
/🆑

A self-heating mug that you can get from BEPIS designs. the better the cell thats in it, the higher the max temp and the faster the temp goes up.
2020-01-23 12:56:22 +13:00
MrPerson
26093e5ac2 Further update_icon splitup (#48784)
* Further update_icon splitup

After this there'll be just under 100 old update_icon() calls that need fixing.

* Thanks Travis
2020-01-22 10:18:05 -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
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
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
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
c20c02a013 Merge pull request #48550 from wesoda25/ethereal-charging
More ways for ethereals to charge
2020-01-14 10:35:22 +01:00
s
296608f2cc better 2020-01-13 17:27:47 -05: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
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
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
LemonInTheDark
a4e2d17a42 Makes SM's radiation behave correctly (#48691)
* https://www.youtube.com/watch?v=RbFpDJsLYOU Should fix some shitcode and unintended behavior

* A classic of our times

* maxing to 0 so we don't get hell sm's

* typo

Co-authored-by: Jordie <4343468+Jordie0608@users.noreply.github.com>
2020-01-10 21:23:55 +11:00
Emmett Gaines
53024590de Can pass refactor (#48659)
* Makes all CanPass procs call parent

* Makes CanPass more extendable and gives the mover a say in the matter

* Replace CanPass with CanAllowThrough to use the new system

Regex replace `(?<!proc)/CanPass\(` => `/CanAllowThrough(`

* Simple optimization pass
2020-01-08 21:31:49 +01:00
skoglol
16dd9a74ac Merge pull request #48517 from SteelSlayer/sm-arcs
Changes the sprite of the supermatter's electricity arcs
2020-01-08 11:25:00 +01:00
ShizCalev
0432f132fb Fixes tesla immunity being lost if you have reactive armor and refund the lighting bolt spell / vice versa 2020-01-06 21:04:44 -05:00
skoglol
5fb2b0fb24 Fixes floodlights (#48570)
* Unfucks floodlights

* Powernet fixes
2020-01-05 19:41:39 -05:00
skoglol
04880ca76c Merge pull request #48556 from ShizCalev/caltrop-fix
Caltrop / glass / lightbulb crossing fixes
2020-01-04 21:56:26 +01:00
BadSS13Player
4b7555d6bb Update coil.dm 2020-01-03 13:15:55 +00:00
ShizCalev
ea56f83e58 Caltrop / glass / lightbulb crossing fixes 2020-01-03 04:47:06 -05:00
s
3fd5c6dbbc cell 2020-01-02 22:16:20 -05:00
s
155a4ed177 apc 2020-01-02 21:47:36 -05:00
SteelSlayer
7d7b7db643 updated sprite 2020-01-01 21:28:52 -06:00
SteelSlayer
e57b0425f0 Changes the look of the supermatter's electricity arcs 2020-01-01 09:02:09 -06:00
Arkatos1
11f0240268 [READY] tgui-next: Bank Machine & UI tweaks (Gravity Generator, Equipment reclaimer) (#48154)
* Basic procs and framework

* progress, reclaimer change

* Bank machine tgui-next, tweaked grav gen and equipment reclaimer

* Cleanup and finish

* Alignment

* Travis restart

* Last return

* Travis check
2019-12-21 21:20:39 +01:00
LemonInTheDark
f01eba3cda Corrects my misconceptions about the supermatter (#48279)
* Do not pr when you should be asleep, do not pr whe-

* Big dumb
2019-12-18 20:26:40 -05:00
skoglol
4a487ca803 Refactors language holder (#48106)
* Language holder refactor

* Ironed out bugs, testing

* adds sourced language, blocking list. more useful helpers.

* Replaced old usage

* Adresses requests

* Autodoc attempt #1

* Fixed monkeyize (again)

* Travis happy

* Language menu updated

* Final pass
2019-12-18 22:22:12 +01:00
Mickyan
55f19df748 Normalizes payouts and vendor prices to an approximate of cargo's credit value (#48174)
* prices & income

* more prices

* lower megaseed premium prices

* custom prices for premium tools

* slightly lowers prices for some snacks/drinks/cigs

* hey get back here
2019-12-16 17:43:27 +01:00
LemonInTheDark
ff2566681a Add comments to supermatter code (#48256)
Comments all of process_atmos() and some of the related static 
variables. Adds some parenthesizes to make an if statement more clear.

This makes it easier to change the sm code without setting off a 
rube-goldberg machine, and given the talk of changing the engine, that 
sounds like an upside to me.
2019-12-15 14:34:34 -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
Arkatos1
1d6c2d7c19 tgui-next: Gravity Generator (#48082)
* Basic ui procs

* Basic tgui-next

* tgui-next gravity generator

* Review fixes

* Code cleanup

* rebuild
2019-12-04 14:58:22 -08:00
LemonInTheDark
da4c5316f8 Fixes supermatter AC. Keeps max subtract below current power. (#47943)
* Properly zeros bz curve, maybe fixes negative rads

* Reverting so it can be better modified.

* Ah hell

* Adds Min that takes over power degen

* Changes constant

* Future proofs against negative positive switch

* Changes powerloss formula again, takes the absolue value to keep it aboove the curve.

* Changes the second formula to a proportional one, needs further testing.
2019-11-26 08:06:05 +01:00
Aleksej Komarov
ac1f4d74c6 More NtOS interfaces, random fixes, client-side theming (#47836)
* General tgui fixes

* Handle ui_style on client side

* NtOS Net Downloader

* Rebuild tgui

* Fix regression on Tabs

* Fix bools
2019-11-20 19:54:24 -08:00