Commit Graph

26 Commits

Author SHA1 Message Date
adrian
3eac44069c Fixes smelting runtime (#31091) 2021-10-16 02:43:46 -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
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
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
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
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
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
ScrewdriverSurvivor
837e1669ad unit tests for reject_bad_name (#22355) 2019-04-16 08:55:13 -03:00
ShiftyRail
60f37ccfc4 Unit test 2018-10-21 15:30:06 +00:00
DamianX
b8a592d2d1 Compile-time options for development (#20119) 2018-10-17 08:07:45 -03:00