Commit Graph

54 Commits

Author SHA1 Message Date
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
cd0d700a85 [MIRROR] Mecha refactor 2020 (#579)
* Mecha refactor 2020

* Update effects.dm

Co-authored-by: TiviPlus <57223640+TiviPlus@users.noreply.github.com>
Co-authored-by: Azarak <azarak10@gmail.com>
2020-09-02 02:16:51 +02: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
Rohesie
30ca02afb5 movespeed_modification unlawful list modification fix (#50135)
* copy

* Spooky suggestion
2020-03-25 17:34:35 +08:00
Rohesie
e36475e1f4 Slowdown fixes and tweaks (#50095)
* Slowdowns

* Highlander fix
2020-03-21 17:01:34 +01:00
vuonojenmustaturska
40657c9ccd removes a bunch of unused/bad helpers (#48969)
* a commit

* Update code/controllers/subsystem/persistence.dm

Co-Authored-By: Emmett Gaines <ninjanomnom@gmail.com>

* Update code/__HELPERS/text.dm

Co-Authored-By: Emmett Gaines <ninjanomnom@gmail.com>

* Update advance.dm

* Update security_officer.dm

* Update text.dm

* Update unsorted.dm

Co-authored-by: Emmett Gaines <ninjanomnom@gmail.com>
2020-01-28 16:22:20 +01:00
Emmett Gaines
d86321a64c Updates BINARY_INSERT to be a bit more flexible (#48831)
Makes use of the do while(FALSE) trick to give it its own context and makes it possible for the inserted value to be different from the compared value so #48747 can use it.
2020-01-23 13:00:45 +13:00
skoglol
4f24cfaa7d Fixes more input sort runtimes (#47957)
* Fixes another sorting runtiming.

* sortNames copy list, another wrong sort.
2019-11-28 19:38:57 +01:00
spookydonut
138c52d0e3 Update some oldcode (#47630)
This is some of the oldest surviving code in the codebase, churchname 
used a global static and wasn't even used anywhere.
2019-11-09 09:37:50 -08:00
Emmett Gaines
766b935fef Add compile compatibility with 513, upgrade Travis (#47137)
This does all the code changes to allow 513 testing, once this all 
seems about correct it should be merged even if the servers aren't 
using 513.

All changes will be made in a backwards compatible way so that this 
whole process should be harmless.
2019-10-18 23:37:03 -07:00
Akrilla
9ca37e9169 Contract rerolls and general enhancements (#45703)
* refactor wip

* rerolling and qol

* space not valid

* travis be nice

* comment?

* new tablet sprites

* Start on uplink screen

* new suit sprite

* paper

* merge conflict

* Auto stash before merge of "contract-reroll" and "tgstation/master"
2019-08-10 02:11:11 -07:00
Tad Hardesty
0f0604575f Add return type annotations to some procs 2019-06-25 23:03:38 -07:00
coiax
755a9e4fb3 Uplink pens now need two separate rotations to unlock (#41843)
cl coiax
add: Uplink pens now require two seperate rotations to unlock. This also
applies to failsafe codes.
/cl

With only 359 combinations on an uplink pen, it's crackable given a
small amount of time. With two, it's now 92,981 combinations, which
is more secure than PDA uplink codes (899 * 26 = 23,374).
2019-01-02 01:03:42 +13:00
kevinz000
4116f7ec79 Techwebs Backend Refactor - Removes references from techwebs and uses IDs instead (#40596)
Yeah yeah I know no opening too many WIP PRs but this one's [ready] and I want to make sure any furthur techweb development doesn't keep using the old reference system which will make refactoring it harder, and this makes it easier for coders to do stuff in theory (at least for me), standardizes getting a node/design, and makes stuff actually GC properly.
2018-10-06 07:52:07 +13:00
Tad Hardesty
5ffd85bf91 Parse non-strings in lists in maps (#39786)
* Parse non-strings in lists in maps

* Fix 'listening' var
2018-08-24 12:39:05 +03:00
Time-Green
aba162f350 Medical Machinery: Organ Harvester (#39064)
Adds an organ harvester. It's a machine. A human goes in, and the machine starts removing organs and limbs and ejects them right next to the machine. The process can be stopped at any time by either disabling power or prying it open.

The machine does not work if the subject has clothes or appears alive. The health scan can be disabled by emagging, but they'll still need to be naked.

It consists of 4 micro-manipulators, each tier making it faster, but it shouldn't ever really go below 2.4 seconds for every iteration, barring magic fuckery


It's basically a slower acting gibber, but it preserves all limbs and organs.
Useful in conjunction with either a limb grower, bounties, extra food, organ replacement or for something yet to come
2018-07-20 11:30:55 +12:00
ninjanomnom
d32d2869c0 Adds looping timers
and a requested binary search insert macro
2018-07-12 20:23:56 -04:00
AnturK
1572321137 Adds make_associative helper. 2018-06-23 22:22:05 +02:00
vuonojenmustaturska
d335a0fd05 Make typecache checks twice as fast, stop using single-type typecaches where appropriate (#38075) 2018-05-28 16:31:30 -07:00
Tad Hardesty
255f89945a Fix 512-only code in recent conveyor belt fix (#36722)
* Fix 512-only code in recent conveyor belt fix

* Fix 511 troubles in a more broad way
2018-03-29 12:41:41 +03:00
kevinz000
ca10fa6d7a Spell Cards (#36147)
Adds spell cards. They're a wizard spell that shoots a burst of 5 semi-accurate homing cards.
Projectiles now have a homing framework, complete with some variant of simulated inaccuracy.
The said wizard spell will make use of a new mob component, that allows that mob to select targets by moving their cursor near them. It will give a visual and lock onto the nearest mob to the cursor, allowing the homing projectiles to target on the locked on mob/object.
Removes colliding variable from projectiles - We never used it after Bump was refactored to Collide.
Images soon when I get the lockon datum-components to work.
2018-03-23 09:39:26 +13:00
Emmett Gaines
25080ff2c4 defines math (#33498) 2017-12-17 11:02:11 -05:00
Jordan Brown
384a1134a1 Move up the lazy macros 2017-12-04 11:00:54 -05:00
Jordan Brown
055d0021bb Speeds up some list helpers 2017-12-04 10:37:30 -05:00
Emmett Gaines
7c69cdcb8a Revert math (#33059)
* Revert "all this wrapping and it's not even christmas (#33035)"

This reverts commit faaf151580.

* Revert "fuck me for forgetting to graph this one"

This reverts commit 45d7acea2f.

* Revert "defines math"

This reverts commit 2817a1737b.
2017-11-23 20:59:52 -05:00
ninjanomnom
2817a1737b defines math 2017-11-22 17:36:58 -05:00
MrStonedOne
7060428b66 The choice is not mine 2017-10-16 23:54:54 -07:00
MrStonedOne
4148446044 Removing 210mb of wasted memory usage 2017-10-16 23:38:56 -07:00
Tad Hardesty
7739312a9c Fix dangling #elseif in list helpers 2017-09-27 16:59:51 -07:00
Mike Long
0eef60e841 Refactors roundstart centcom threat report. (#30241)
* Refactors rounstart centcom threat report.

* Changes a .Add() to a +=

* Fixes merge.

* Another fix from the merge.  Whoops.

* Removes slashes from sandbox report.
2017-09-13 11:45:57 -04:00
Jordan Brown
d144c88fb5 Annihilates the colons! (#29812) 2017-08-15 12:49:35 -03:00
oranges
5440cfca28 Merge pull request #29697 from Xhuis/the_daily_pr
Rewrites incorrect documentation for the pickweight() proc
2017-08-06 20:09:18 +12:00
Fox-McCloud
c24c9b3ba0 even cheaper 2017-08-04 16:47:49 -04:00
Xhuis
3ca90bbb5a Makes some documentation for pickweight more clear 2017-08-03 17:05:34 -04:00
oranges
edd6299183 split typecache filters into two procs
Apparently I can't stop myself fucking this up so lets do it this way
2017-07-19 10:04:35 +00:00
oranges
31966b7f6b Fix missing keyword argument syntax in typecache_filter_list 2017-07-19 21:07:06 +12:00
ninjanomnom
2d14a3e993 fixes typecache again 2017-07-19 00:34:45 -04:00
ninjanomnom
5c8d1bdab7 woops 2017-07-18 03:00:30 -04:00
bagil
efff1acc0b revert ff1198383a 2017-07-11 07:30:06 +00:00
MrStonedOne
85de154132 astar improvements
also brought astar back up to specs, gave pathnode better vars
2017-07-09 00:27:39 -07:00
nicbn
77a2d3f5cd Replaces "istype"s with is_helpers macros (#28676) 2017-06-22 15:03:19 -03:00
kevinz000
f37e2a5cc3 reeeeeeeeeeeeeee 2017-06-19 07:52:31 -07:00
Remie Richards
ae0cef5a18 We're incomplete without this. 2017-06-09 12:06:04 +01:00
Jordan Brown
d7ebd649ba Refactors the latejoin list (#26647) 2017-06-04 17:07:46 -03:00
Joan Lung
ca815ef61f Merge pull request #23201 from MrStonedOne/clientimprovements
[READY]DATUM VERBS AND TOP MENUS!
2017-05-07 18:07:35 -04:00
Cyberboss
e8656e9eae Revert "Allows admins to pass parameters to New() (#26613)"
This reverts commit 9d0185c023.
2017-05-04 15:37:06 -04:00
MrStonedOne
1ff6a090d4 DATUM VERBS AND MENUS! 2017-05-04 01:54:20 -07:00
Cyberboss
9d0185c023 Allows admins to pass parameters to New() (#26613)
* /proc/print_single_line(list/L)

* Admin datum/New parameters

* Fixes
2017-05-01 11:55:58 -06:00
Cyberboss
e8567cd7c9 Fix 2017-04-16 17:04:39 -04:00
Cyberboss
652a655e29 Standardizes subsystem Shutdown order 2017-04-14 19:04:32 -04:00