Commit Graph

55 Commits

Author SHA1 Message Date
Exxion
81fecc2b1c nameof (#34826) 2023-08-02 22:27:05 -05:00
DeityLink
463ebf12db Probably fixes the persistence misc subsystem sometimes failing (#34714)
* Probably fixes the persistence misc subsystem sometimes failing

* g'damn stat collector failing my tests

* another roll of the dice

* Update Dreaming.dm

* sanity

* I'm at the end of my wits here

* Revert "I'm at the end of my wits here"

This reverts commit cfbe57f4b2.

* never doubt the code
2023-07-20 12:06:40 -05:00
Exxion
73f7b1c098 Makes game work on 515, probably 2023-04-02 17:20:12 -04:00
SECBATON GRIFFON
83b47871a7 Dynamic mode acceptable() cleanup and testing (#34087)
* dynamic mode code cleanup

* the test itself

* cleanup

* fixes

* no override here

* more like old function

* one less argument

* one less again

* one less again

* maybe like this

* maybe like this

* moves this check in here, adds it to test, cleaner like this

* moves this check in here, adds it to test, cleaner like this

* proper comparison now

* redundant call

* high pop check test

* high pop check test

* high pop check test

* high pop check test

* better asserts

---------

Co-authored-by: SECBATON GRIFFON <sage>
2023-02-17 18:26:11 -06:00
SECBATON GRIFFON
d8c8a9bb90 Adds qdel defines (#33991)
* Adds qdel defines

* Adds qdel defines

* halfway through fixes

* rest of em

* fixes

* adds more

* list in action

---------

Co-authored-by: SECBATON GRIFFON <sage>
2023-02-10 15:01:18 -06:00
SECBATON GRIFFON
cd834682a7 Dynamic mode unit tests (#33988)
* Dynamic mode unit tests

* Dynamic mode unit tests

* start on this check

* more work, still failing

* more work, still failing

* more work, still failing

* more work, still failing

* dead_dont_count now passes

* most i can do for tonight

* most i can do for tonight

* some clearup

* works now, but should preferrably find a way in the unit tests instead

* works now, but should preferrably find a way in the unit tests instead

* test

* maybe this will help better

* just invert it and it does

* maybe this will help better

* oh it did this whole time, also move this list here so it isn't defined 10 times

* extra check

* extra check

* extra check

* extra check

* more natural to check like this

* more natural to check like this

* more natural to check like this

* more natural to check like this

* more natural to check like this

* more natural to check like this

* more natural to check like this

* maybe now?

* cuts down a bit

* trying this one out

* trying this one out

* trying this one out

* trying this one out

* yeah was doing this totally wrong

* yeah was doing this totally wrong

* yeah was doing this totally wrong

* nah totally undoable until acceptable() is reformatted, like the comment was explicitly telling you to do

---------

Co-authored-by: SECBATON GRIFFON <sage>
2023-02-10 15:00:38 -06:00
adacovsk
d7a5758db7 Fix snacks artifact and update a unit test (#33751)
* Update artifact_vendor.dm

* snacks

* Update artifact_vendor.dm

* Update artifact_vendor.dm

* Update sound.dm

* Update icons.dm

* Update icons.dm
2022-11-29 14:21:05 -05:00
kacurasuo
4cd252799c Fixes several botany chemical reactions (#33390)
* Fixed an issue with logic in setting up initial datum/reagents chemical_reactions_list. It prevented recognizing reactions where the first component of the reaction was one element of a defined list and the reagent was not the first element of that list.

* Changes the unit test not to freak out about alias reactions.
2022-09-30 03:08:54 -05:00
kane-f
aa65fe1f15 Allows protolathes to recycle materials (#32926)
* Allows protolathes to recycle materials

* Flips these

* New unit test, more accurate

* Now maybe

* This too

* Thing itself

* Just in case

* Indents

* Proper inheritance

Co-authored-by: kanef <kanef9x@protonmail.com>
2022-07-21 00:42:35 -05:00
Hinaichigo
15c7603524 Grues Revisited (#31687)
* Base of grues.

* Few more updates to grues

* Bit more work on grues.

* Bit more work on grues, namely getting them to evolve and reproduce properly.

* A few additions to gures and also to simple mobs to allow for delayed airlock forcing.
Egg hatching and upgraded stats with every sentient being eaten.

* Few additions to grues including a grue language and gruevision to see in the dark.

* Several changes to grues, including adding their antag roles (still need to be tested/debugged).

* Finalized the base of grues including a nicer-looking grue vision.
Some stuff remains to be tested and debugged.

* Removed obsolete file.

* Updated vgstation.dme with grue additions

* Update vgstation13.dme

* Update grue.dm

* modify .dme

* typo

* remove unneeded variable

* Added gore globs from those eaten by grues that can be cloned or brain extracted. Also fixed some bugs preventing slime puddles from being put in a cloner. Had to generalize a bunch of code in various places to do this (eg. moving certain procs and variable definitions from /mob/living/carbon/ to just /mob/living/)

* Removed gore globs after being eaten by a grue; a head remains by default so it's not needed.
Also debugged slime puddle cloning.

* -grue egglaying is set to a config option
-few modifications to grue antag objectives

* Added changelog and some UI tweaks.

* Update misc_structures.dm

* Update misc_structures.dm

* Juvenile grues can force open doors as well. Also added some more descriptive text upon moulting. Fixed airlock code bug.

* Update grue.dm

* Delete nulllight.ogg

* Fixed up grue sound effects. Renamed humanoid grue to umbra.

* more grue/umbra split stuff

* Update Hinaichigo.yml

* Adult grues can force airlocks open instantly.

* Changed role greet messages from 'danger' to 'warning'.
Explitized empty lists in grue gamemode variables.

* Update grue_egg.dm

* Few fixes to grues.

* Used defines for lifestage checks.
Reverted organ changes and removed an unneeded(?) check from cloner code.

* Migrated grue abilities into spells framework.
Made umbras (humanoids formerly called grues) in the same faction as grues.

* .

* Grue spell icons

* .

* Custom blood and meat colors for mobs.
Grue meat contains a certain substance.

* Removed gore globs.

* .

* Meat coloring + related food unit test fixes.

* Update icons.dm

* Bugfix with custom meat colors.

* .

* Grue abilities panel+sprites.

* .

* Fixed up grue role/objectives.

* .

* Sprite tweak.

* .

* New sfx for moulting and burning in light.

* .

* fixed icon conflict

* .

* icon conflict fix

* More descriptive variable names. A few tweaks to stats.
2022-01-21 10:08:07 +00:00
adrian
3eac44069c Fixes smelting runtime (#31091) 2021-10-16 02:43:46 -05:00
DamianX
d4a4ce82d7 Optimized invoke_event (#31046) 2021-10-11 11:56:44 -05:00
DamianX
fe77ef6e20 Converted all old events to lazy_events, removed old events, renamed lazy_event to event (#30503)
* wip refactor old events

* refactored events

* We're not lazy anymore! I mean we're still are. We just don't call ourselves that. Lazy is the new default option. It's also the only option. God, this took so long.
2021-09-04 23:21:03 -05:00
DamianX
a414400f19 Things that used to check if you were walking now check your movement speed instead (#30018)
* help me

* slightly less horrible code

* removed slipping test
2021-08-24 20:05:33 -05:00
ShiftyRail
b2533d5768 Add defcons levels to help the crew during blob. (#29176)
* Add defcons levels to help the crew during blob.

* Feedback and fixes

* Copypasted it in the wrong place

* Travis bump

* devmode off

* oversight

* Update code/_onclick/hud/screen_alarms.dm

Co-authored-by: jknpj <jknpjr@gmail.com>

* review

Co-authored-by: jknpj <jknpjr@gmail.com>
2021-04-19 11:42:48 -05:00
ShiftyRail
cce52fadcc Fixes catbeast language. Adds a language unit test (#28579)
* Fixes catbeast lanugage. Add a language unit test

* Update __compile_options.dm

* There

* Fixes skrell too while I'm at it
2021-01-18 13:07:26 -06:00
jjpark-kb
fe31cb0664 SMs will now dust you if it runs into you (#28359)
* SMs will now dust you if it runs into you

* including the unit tests

* attempt two at merging the unit tests

* every gosh dang time, indentation fix
2020-12-18 18:17:40 -06:00
adrian
283a00d1a5 One handed gloves (#28318) 2020-12-18 18:02:49 -06:00
adrian
71e2f218ed Hidden identity fixes (#28233)
* Hidden identity fixes

* The tests

* Sets gender on test
2020-11-26 03:40:37 -06:00
adrian
c8ffa0f900 Borer slime fix (#28192) 2020-11-17 07:52:07 -06:00
DamianX
69a53e55c7 It just works (#27937) 2020-10-01 01:13:58 +02:00
DamianX
9d22d96ee3 Added unit test for reagent IDs (#27933)
* Added unit test for reagent IDs

* Moved reagents from hydroponics_reagents.dm to Chemistry-Reagents.dm

* Fix all the things
2020-09-30 14:35:33 -03:00
gurfan
a2d9b52dd3 revert malf hack time back to a flat 60 seconds (#27831)
* revert malf hack time back to a flat 60 seconds

I've played through a few malf rounds after this change (including twice as malf) and I don't like it. While I think most people would agree that malfs have a tough time, they should be strengthened in other ways besides reducing the hack time. I think the change makes malf a little *too* easy, the AI doesn't need to plan a strategy anymore or even bother to hide hacked APCs. The hacking time is short enough to the point where the AI can go delta with only a few APCs then just continue hacking its way to victory. This is a grudgecode.

* remove unit test
2020-09-21 19:09:49 -03:00
adrian
99169b66b4 Fixes malf's APC hacking timer (#27783)
* Fixes malf's hacking timer

* ... with a unit test
2020-09-11 15:38:19 +02:00
adrian
588a28230b Persistent highscores of rich escapes (#27558)
* Ch-ch-ch-ch-changesss

* linter
2020-08-24 08:48:46 -03:00
Paul Ritter
f471180f03 Laser rework and Raycasting stuff (#27406)
* basic rays

* vector3 tostring

* hotfix to exclude origin

* altered test method

* vector3 minus

* actually made raycasthits usable

* using raycasthits

* renamed test procs file

* ups

* moved code

* forgot

* moved vector & procs

* reworked 2d-vectors
reworked rays to work with 2d-vectors
optimized raycast algorithm

* reworked raycasting to be costumizable

* reworked beams to use ray - first experiment

* reworked raycasting to enable control of loop over raycast_hit_check

* readability

* reworked beams to use new rays
TODO:
- beam/rebound
- ray/is_point
- test

* vector to angle

* progress - TODO angle calculations

* progress on rebound

* hi damian

* fix oops

* ray hotfixes
TODO:
- use clickpos as ray target if possible
- move rebound logic to ray_hit_check
- graphics

* hotfix & deletions

* added costum hit_type capability
reworked rebound call logic
TODO:
rebound vector calculation

* rebound fix

* angle & mirror fix

* dumb fuck sadasfhgdasd

* start to remove debugging spam

* reflection now fully implemented

* started work on visualization

* damian wants to see

* almost done ™️

* progress report
- turn wont work, need to write render logic to generate beams

* reeeflections

* added drawing code

* - small tweaks
- removed old code
- finished visualization

* added spawn to let different reflections be drawn independent from each other

* removed hitlers

* oh shit oh fuck

* some small fixes

* yeah ok i goofed travis get over it

* made dependant code work

* dumbfire implemented but not tested cause how

* example

* remove bench stuff oops

* rewrote raycast hit code to allow more possible modifications

* added original check

* original_check hotfixes

* actual hotfix...

* mirror fix

* original_check hotfix

* unit tests

* to_bump hotfix

* to_bump hotfix

* misc fixes

* reworked collision physics

* big nono

* finishing collision physics

* fixes for sonix

* tgstation ™️

* removed old unit-test

* unit test fixes

* damian actually reviewed

Co-authored-by: Damian <damian@autistici.org>
2020-08-23 20:13:42 +02:00
adrian
b4a9c52a85 Some small fixes (#27448)
* Who the fuck overdoses a goliath with honk serum?

* Fixes two bad food spawners

* More descriptive test name

* I lost track of this runtime.

* whatever

* Fixes runtime in spreading_growth.dm,20: bad index. Null is a valid value here
2020-08-09 14:31:38 +02:00
ShiftyRail
8b25c338ab Outfit datums, but it works! (#27404)
* Revert "Revert "Outfit datums update" (#27400)"

This reverts commit c9377ceebd.

* Fixes a mess
2020-08-07 18:49:41 -03:00
DamianX
c9377ceebd Revert "Outfit datums update" (#27400) 2020-08-06 16:03:37 +02:00
jknpj
94434af73b Merge pull request #27340 from ShiftyRail/the_final_merging
Outfit datums update
2020-08-06 07:39:43 -03:00
adrian
ad24051cb6 Seeds icons unit test. Fixes brown mold spores blank icon. Removes an unused seed type (#27378) 2020-08-05 13:31:43 +02:00
ShiftyRail
dfb13b9340 Merge branch 'Bleeding-Edge' into the_final_merging 2020-08-03 23:29:52 +02:00
zth
9610207629 Adds food icons unit tests and a few minor fixes with some warnings or runtimes 2020-08-02 17:56:37 -03:00
Shifty/Anthomansland
e94cb0a978 there there 2020-08-02 15:09:29 +02:00
Shifty/Anthomansland
3c9ee208fd Correct test 2020-08-02 15:01:45 +02:00
Shifty/Anthomansland
6889be70cb Final merge 2020-08-02 09:11:35 +02:00
adrian
e5877d3f4b More runtimes (#27289)
* Fixes a bad spawner on gingerbread house

* Fixes credits songs

* Fixes a runtime with null telepads

* Oops

* Adds a simple autolathe/ammolathe unit test

* Forgot to commit the file
2020-07-28 08:59:55 +02:00
DamianX
1e007a1a3e Added lazy events (#27091)
* Added lazy events

* remember to compile before changing your code

* Converted on_z_transition and on_post_z_transition to lazy events

* add todo

* fix oops

* fix another oops

* and anotha one

* Moved unit tests to the proper place
2020-07-15 17:15:44 -03:00
Shifty/Anthomansland
4bffafe202 Gains some seconds 2020-05-24 19:19:14 +02:00
Shifty/Anthomansland
36bfb18aa4 Outfit datums: unit test 2020-05-24 19:14:57 +02:00
adrian
a2b4b6420a Fixes turret controllers (#26280)
* Fixes turrets controllers. With unit testing!

* oops

* yeah no
2020-04-22 20:33:01 +02:00
Shifty/Anthomansland
ee29756f6a Possibly confusing var name 2019-11-06 19:01:20 +01:00
Shifty/Anthomansland
8452f9e3de Engineering outfit datums 2019-11-06 18:55:15 +01:00
SonixApache
b82d367101 MAGPULSE clothing flag instead of hard magboot checks (#23022) 2019-05-26 07:11:14 -03:00
boy2mantwicethefam
2af2fec25f Walking on the clown PDA slips you (not april fools) (#22279)
* Slip on walking

* Fixes error
2019-04-28 16:55:13 +02:00
ScrewdriverSurvivor
837e1669ad unit tests for reject_bad_name (#22355) 2019-04-16 08:55:13 -03:00
Shifty/Anthomansland
3e1bc4b7f5 Conflicts + grammar 2019-01-09 16:51:14 +01:00
Shifty/Anthomansland
44c2e0db32 More comments 2018-11-26 18:40:27 +00:00
ShiftyRail
60f37ccfc4 Unit test 2018-10-21 15:30:06 +00:00
DamianX
92f88dd217 Suicide act refactor (#20334)
* Rename macros

* count_set_bitflags helper

* Fixed RCD suicide_act
2018-10-20 21:06:47 +01:00