Commit Graph

32 Commits

Author SHA1 Message Date
SkyratBot
0d6453f671 [MIRROR] Teleporter machinery now auto links with each other, removes screwdriver + wirecutter interaction (#1266)
* Teleporter machinery now auto links with each other, removes screwdriver + wirecutter interaction (#54325)

Teleporter machinery will now automatically link with each other. This makes the screwdriver + wirecutter interaction redundant, so it has been removed.

* Teleporter machinery now auto links with each other, removes screwdriver + wirecutter interaction

Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
2020-10-12 23:17:29 +02:00
SkyratBot
1dfe6e9e85 [MIRROR] Unit tests for serving trays (#1199)
* Unit tests for serving trays (#54224)

* Unit tests for serving trays

Co-authored-by: NightRed <nightred@gmail.com>
2020-10-08 02:42:27 +02:00
SkyratBot
f3f5ea78ca [MIRROR] Undefine testing only define once tests are finished (#995)
* Undefine testing only define once tests are finished (#53960)

* Undefine testing only define once tests are finished

Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
2020-09-26 16:21:43 +02:00
SkyratBot
a669313e10 [MIRROR] Fix chemicals not recognizing end of metabolization (#756)
* Fix chemicals not recognizing end of metabolization (#53550)

* Fix chemicals not recognizing end of metabolization

* Make generic to all organs

* Fix chemicals not recognizing end of metabolization

Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
2020-09-11 23:21:10 +02:00
SkyratBot
daf1e33515 [MIRROR] Unit tests for expose_mob (#702)
* Unit tests for expose_mob (#53498)

This is a set of unit tests for expose_mob.
This tests that INGEST, TOUCH, VAPOR, PATCH, INJECT are triggering on standard exposure methods.

* Unit tests for expose_mob

Co-authored-by: NightRed <nightred@gmail.com>
2020-09-09 08:15:57 +02:00
SkyratBot
c6007727cd Many issue fixes for stomachs and chem interactions (#53440) (#671)
This changes the has_reagent check to work with stomachs.
Several supporting procs have been added to fully support this behavior.
end_metabolization will work as expected again
expose is working with INGEST items again
on_mob_add working as intended
on_mob_life has been reviewed and worked over.

Health Analyzers now show stomach contents, same with the medical kiosk.

Included the unit test to validate reagent checks.
Unit tests for the new procs on mob

Co-authored-by: NightRed <nightred@gmail.com>
2020-09-07 04:10:16 +02:00
SkyratBot
f0b3513425 [MIRROR] Add test for emotes (#657)
* Add test for emotes (#53430)

* Add test for emotes

Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
2020-09-06 05:53:36 +02:00
SkyratBot
68e50311c9 [MIRROR] Fixes quick swapping suits creating illegal suit storage (#612)
* Fixes quick swapping suits creating illegal suit storage (#53272)

* Fixes quick swapping suits creating illegal suit storage

Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
2020-09-02 03:07:32 +02:00
SkyratBot
2bfdfbb910 [MIRROR] Change signature of BINARY_INSERT to require the full type path, add test (#611)
* Change signature of BINARY_INSERT to require the full type path, add test (#53217)

BINARY_INSERT used to only take typepaths like/this. Now, it expects them to be /like/this, to be more consistent with ther est of the code.

Adds documentation to COMPTYPE.

Adds a test for BINARY_INSERT.

* Change signature of BINARY_INSERT to require the full type path, add test

Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
2020-09-02 03:07:17 +02:00
SkyratBot
a8476938b3 [MIRROR] Fix resisting not starting stop, drop, and roll (#450)
* Fix resisting not starting stop, drop, and roll (#53079)

* Fix resisting not starting stop, drop, and roll

Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
2020-08-21 14:17:11 +01:00
SkyratBot
a8ec5f995e [MIRROR] ACTUALLY fixes circuits disappearing when disassembling machines (#344)
* Actually fix machine disassembly (#52871)

* ACTUALLY fixes circuits disappearing when disassembling machines

Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
2020-08-15 00:52:40 +02:00
SkyratBot
c5c00fc6ff [MIRROR] Confusion will no longer continue to confuse after being cured (#213)
* Confusion will no longer continue to confuse after being cured (#52286)

* Confusion will no longer continue to confuse after being cured

* Grammar comment fix

* Move to status effect

* Remove test per request

* Make confusion a status effect, confusion curing now completely neuters the confusion

* set_confusion changes, get_confusion

* Fix confusion going down twice per tick

* Change strength = to proc

* Move procs to status_procs

* Confusion will no longer continue to confuse after being cured

Co-authored-by: Jared-Fogle <35135081+Jared-Fogle@users.noreply.github.com>
2020-08-06 01:02:19 +01:00
Jared-Fogle
dd6e5a96c0 Fix multiple message prefixes being allowed at a time. AKA, you can now start messages with ellipses again. (#52498) 2020-07-26 22:08:27 -04:00
Ryll Ryll
82a44a1a07 Adds unit tests for suffering Wounds (#52491)
* add wound tests

* comment

* clarify

* compromise
2020-07-26 13:39:35 -04:00
ShizCalev
ea351bc9ac Merge pull request #52433 from Jared-Fogle/metabolization-tests
Add unit tests for metabolizing of all reagents and fix the ones that failed
2020-07-24 22:30:15 -04:00
Couls
dc5840dc4e keybind signal support, ported from TGMC (#52219)
* keybind signal support, ported from TGMC

* Thank you linter

* remove unused and extra defines

* move signal defines up and fix emote keybind runtimes

* Apply suggestions

* Update keybinding.dm

* Missed this one in the upstream merge

* Ignore keybindings without names

* back to the OG

* Update living.dm

* Update living.dm

* got it

* trailing newline

* Update code/datums/keybinding/living.dm

Co-authored-by: Rohesie <rohesie@gmail.com>

Co-authored-by: Rohesie <rohesie@gmail.com>
2020-07-22 16:53:27 -04:00
jdawg1290
62676e72a8 Force LF line endings with gitattributes and convert repo (#52266)
Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
2020-07-16 03:02:40 +03:00
Daniel Hultgren
28958169a1 Added SI unit formatting proc and applied it to canister examine (#52235)
* Added si unit formatting proc, and unit tests for it

* Added canister examine note for what their max pressure is

* Fixed the siunit proc comment abit
2020-07-15 22:29:13 +08:00
Jared-Fogle
ee5b005007 Add tests for outfits, fixes families outfits, Syndicate Ship Captain, and armored bounty hunters (#52210)
* Add tests for outfits, fixes families outfits and Syndicate Ship Captain

* Switch out captain uniform from tacticool to combat

* Consistent styling

* My weakness is I'm a pedant

* Check left and right pockets, and fix armored bounty hunter
2020-07-14 20:06:11 -04:00
Jared-Fogle
4b21913c58 Add unit tests for some surgeries, adds more APIs for unit tests to call (#52093)
* Add unit tests for medical related stuff

* Remove inaccurate assertion
2020-07-09 13:41:59 -04:00
Jared-Fogle
640ed8b5fc Fix pulling people through space breaking the chain (#51997)
Includes a unit test because TDD is good.
Why It's Good For The Game

It makes transport through space with friends much more annoying than it should be.
Changelog

cl
fix: Fixed a bug where when teleporting naturally (such as going through a z-level in space), if you were pulling someone that was then pulling another person, only you and the person you were pulling would make it through.
/cl
2020-07-07 10:48:48 +12:00
LemonInTheDark
eab31fd4d5 Adds some card unit tests, cleans up some comments (#51434)
* Adds unit tests, some more checks, and improves some comments

* sweep sweep sweep?

* Braindamage
2020-06-05 18:46:58 +08:00
Emmett Gaines
1c21534422 Adds a unit test to make sure the id_arg_index is used (#49676) 2020-03-04 00:47:48 +08:00
spookydonut
f3a99558c3 Removes some dead/unused code (#48158)
* cleans up some deadcode

* ancient

* goon icons

* rice and garlic

* more

* last one

* fuuuuuuuuuuuuuuuuuucking subtypes
2019-12-15 14:09:02 -05:00
oranges
cd05d64bcf Species types sources refactor (#42523)
There is now a bitflag that controls all the ways a species can be
selected from the different methods of changing species, xeno spawn,
pride mirror, magic mirror etc.

The soviet and capitalist golems are no longer selectable from the pride
or magic mirrors (just the badmin one)

interesting thing I found, androids and synths (including military
synth) are acheivable via xeno extracts!
2019-02-03 20:33:11 +11:00
Emmett Gaines
f1d19d5787 Turn a runtime component sanity check into a unit test (#40851) 2018-10-12 15:41:55 -07:00
kevinz000
9eec1f8db2 Adds move force and move resist, movement/pushing/pulling tweaks (#39556)
* Removes anchroed from mobs, adds move force/resist

* Move force and move resist

* WIP, still has debug messages.

* Fixes

* Update living.dm

* Anchored removal

* Stuff

* Unit tests

* Removes anchored from dview

* DME

* Update anchored_mobs.dm

* Fix

* No ghost spacewind

* Update mulebot.dm

* Update temporary_visual.dm

* Update forcefields.dm

* Update step_triggers.dm

* Update portals.dm

* Update alien_acid.dm

* Update bump_teleporter.dm

* Update landmarks.dm

* Update countdown.dm

* Update blessing.dm

* Update shieldgen.dm

* Update containment_field.dm

* Update field_generator.dm

* Update singularity.dm

* Update atmosmachinery.dm

* Update door.dm

* Update gravitygenerator.dm

* Update door.dm

* Update effects.dm

* Update temporary_visual.dm

* Update bump_teleporter.dm

* Update forcefields.dm

* Update landmarks.dm

* Update portals.dm

* Fixes

* Throwforce annnd done, finally

* Fixes

* Haha I'm dumb sometimes
2018-09-15 05:08:30 -04:00
ninjanomnom
01a79dccb0 Fixes timer buckets going into negatives and adds a regression test 2018-08-16 14:50:09 -04:00
Jordan Brown
fdcddac637 Adds a unit test that spawns some humans and waits a bit (#39067)
* Adds a unit test that spawns some humans and waits a bit

* What the fuck did you just fucking say about me, you little bitch? I'll have you know I graduated top of my class in the Navy Seals, and I've been involved in numerous secret raids on Al-Quaeda, and I have over 300 confirmed kills. I am trained in gorilla warfare and I'm the top sniper in the entire US armed forces. You are nothing to me but just another target. I will wipe you the fuck out with precision the likes of which has never been seen before on this Earth, mark my fucking words. You think you can get away with saying that shit to me over the Internet? Think again, fucker. As we speak I am contacting my secret network of spies across the USA and your IP is being traced right now so you better prepare for the storm, maggot. The storm that wipes out the pathetic little thing you call your life. You're fucking dead, kid. I can be anywhere, anytime, and I can kill you in over seven hundred ways, and that's just with my bare hands. Not only am I extensively trained in unarmed combat, but I have access to the entire arsenal of the United States Marine Corps and I will use it to its full extent to wipe your miserable ass off the face of the continent, you little shit. If only you could have known what unholy retribution your little "clever" comment was about to bring down upon you, maybe you would have held your fucking tongue. But you couldn't, you didn't, and now you're paying the price, you goddamn idiot. I will shit fury all over you and you will drown in it. You're fucking dead, kiddo.
2018-07-12 14:43:36 -04:00
Emmett Gaines
70beb65889 Unit test to make sure all subsystems which initialize call parent (#36466) 2018-03-20 14:01:46 +01:00
Cruix
ad7fc7417c Added chemical reaction unit tests (#35478)
* Added unit tests for reagent recipes

* Renamed recipe_collisions unit test to reagent_recipe_collisions

* Fixed chemical conflict unit test temperature logic

* Made chemical reactions always choose the reaction with the most extreme temperature requirements if there are multiple possible reactions
2018-02-16 09:34:08 +13:00
Cyberboss
d615b56be4 Revert "Remove unit tests"
This reverts commit 69e27bb76ff78af47d2c1b4b8faf91d8b5f9b128.
2018-01-19 11:55:12 -05:00