Commit Graph
40301 Commits
Author SHA1 Message Date
warriorstar-orionandGitHub 4ace2d6c2b Implement map tests for catching common errors. (#19204)
* Implement map tests for catching common errors.

- Adds test runner:
	- to make it easier to track things across test types
	- for example to ensure a fully specified log can be emitted

- Adds map tile test type:
	- when writing a test, coders implement CheckTile, which is
	  handed a single turf
	- when the test runner runs these tests, it iterates over
	  all turfs in the specified z-level, and runs each test's
	  CheckTile on each turf in turn.

- Adds two sample map tile tests:
	- check to see if a pipe exists on the same tile as a scrubber
	  or vent
	- check to see if a tile contains two cables, each with a center
	  node

* Review #1:

- Replace nested loops over map tiles with `block`
- Remove check for valid turf in individual tests, I think it's safe to
  assume `block` will always return legit turfs
- Added proper duration tracking for old tests
- Gave log file an appropriate extension
- Actually use `Fail` for tests

* whoops

* add more tests suggested by @Vi3trice

* Add some more tests courtesy @Bm0n and @Vi3trice

* windows are okay in space as long as it's nearspace

* Add failure threshold to prevent excessive logging.

Once this threshold is reached, a test will stop being processed for
every tile.

Note that this applies to `log_world` and `text2file` equally when
logging large amounts of failures.

* Document each test.

* Remove unnecessary reboot

* Let all map tests run to completion in CI matrix.

* I know what alphabetical means
2022-11-05 15:32:17 +00:00
Vi3triceandGitHub 2d4d65664a Split those out (#19280) 2022-11-05 13:46:44 +00:00
7592bc64ce Power gloves deal stamina damage instead of weakening. (#19508)
* No more weaken + Better description

* Better attack log

* Now also throws people

* Lower cooldown on request

* Commit farie's review

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

Co-authored-by: Farie82 <farie82@users.noreply.github.com>
2022-11-05 13:45:37 +00:00
FloFluoroandGitHub 923e4b933a Adds new lawset, "Pranksimov" (#19306)
* Adds new lawset, "Goofsimov"

* Goofsimov module now spawns at player's feet

* Module renamed to AsiFun

* Renamed... again!
2022-11-05 13:44:41 +00:00
AdriandGitHub 62a4ddb174 Fixes the telecomms machine having "Noise" as a listed language (#19611) 2022-11-05 13:44:23 +00:00
LemonInTheDarkandGitHub 963516769c Changes how the garbage subsystem queue stores and processes info (#19608)
The way """we""" currently do it, each time you want to walk the queue
you're forced to make a copy in memory of the whole thing

There's no real reason to want this, so it seems best to just avoid it
entirely. It creates a TON of usage for no reason, and also risks a lot
of overtime since you can't really batch a list copy like that.

So instead let's just iterate over the length of the queue, constant
rather then O(N) time.

Similarly, rather then using an associated list in the form queue[ref] = gc time,
we could store queue entries in what amounts to a tuple.

This means no associated list stuff, so the operation of queuing becomes
cheaper, and pulling gc time similarly goes from O(log n) to constant time

I stole this work from myself and mso, tg pr 55595
I'm pring it here because I keep seeing affected complain about the
garbage subsystem and he refuses to do it himself. No I don't have an
ego problem I swear
2022-11-05 11:19:27 +00:00
Sirryan2002andGitHub df9fd05e0f fixes runtime (#19576) 2022-11-04 08:47:59 +01:00
AffectedArc07andGitHub 21109f3be2 Improved antag fishing busting (#19542) 2022-11-03 18:05:43 +00:00
PacifistDalekandGitHub 250dc8a818 add description and new icons for components (#19535) 2022-11-03 18:02:35 +00:00
8e475415b1 Stops tree shadows from being part of their hitbox (#19543)
* unclickable shadows

* readability

* effect

* Update code/game/objects/structures/flora.dm

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>

* order of operations

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>
2022-11-03 18:02:08 +00:00
66e893ad2d Adds Suspicious Bomber Jacket (#19545)
* syndicatebomber

* armourmeup

* Update code/modules/clothing/suits/miscellaneous.dm

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>
2022-11-03 18:01:31 +00:00
Coolrune206andGitHub e80ae1f95f Removes .357 Speed Loaders from Autolathe, replaces with .357 Ammo Boxes (#19553)
* revolvers are balanced now, right?

* decreases metal cost per bullet from 5000 to 4000

* converts bullets to a new ammo box

* shut up Marmite (makes the revolver unrecyclable)
2022-11-03 18:01:05 +00:00
warriorstar-orionandGitHub 12c873d816 Fix human appearance randomness in spawners. (#19561) 2022-11-03 17:59:30 +00:00
GDNandGitHub 00e33dd91a Fixes a DNA scanner stacktrace runtime (#19567)
* fixes a DNA scanner runtime

* Earlier return

* Code comment
2022-11-03 17:58:26 +00:00
Henri215andGitHub 047727d575 safe no longer locked when repaired (#19569) 2022-11-03 17:58:05 +00:00
dfbe11e345 Alien BlackBox tracking (#19582)
* Alien BlackBox tracking

* AA's suggestion

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
2022-11-03 17:57:24 +00:00
Sirryan2002andGitHub 852726d107 yuh (#19592) 2022-11-03 17:56:13 +00:00
Sirryan2002andGitHub 8dd4fe61be moving some returns around (#19591) 2022-11-03 17:55:47 +00:00
Henri215andGitHub d270ba10d6 shielding typo (#19589) 2022-11-03 17:55:27 +00:00
warriorstar-orionandGitHub 4a105f2c7e Delete more unused files. (#19588) 2022-11-03 17:41:38 +00:00
warriorstar-orionandGitHub 4bb50665a8 Remove unused dead code for cargobonus event. (#19587) 2022-11-03 17:40:52 +00:00
FloFluoroandGitHub 17a307c044 Fixes overlays on cmagged plant disks (#19539)
* Fixes overlays on cmagged plant disks

* Oops, this wasn't needed

* Early returns

* Returns
2022-11-03 09:42:35 -05:00
AzuleUtamaandGitHub ac1517e8b3 Fixes human mobs still being able to vomit while dead (#19538)
* Jaunter no longer makes dead people vomit

* Vomit proc in carbon.dm now has a death check
2022-11-03 00:05:31 -05:00
AzuleUtamaandGitHub 05c4dfd01b Fixes certain items being removed unintentionally from operative uplinks (#19532) 2022-11-03 00:04:23 -05:00
S34NandGitHub ff0c628db6 fixes weird pipes (#19530) 2022-11-02 23:12:04 -05:00
LucandGitHub c5bc28f41f Adds *crack, an audible emote that lets you crack your knuckles. (#19529)
* Adds knuckle cracking sfx

* Add cracks for IPCs too

* Matt code suggestions

* review 2

* Fix species limitations, add diona sfx
2022-11-02 23:00:46 -05:00
warriorstar-orionandGitHub 8ea4da61f3 Rename IC announcement CSS class (#19580)
* Rename IC announcement CSS class

* fix ai mech takeover too
2022-11-02 20:54:08 +00:00
ContrabangandGitHub 32146754c1 bye bye macro (#19574) 2022-11-02 20:52:22 +00:00
AffectedArc07andGitHub 6662c48c69 Fixes PR announce test being huge (#19579) 2022-11-02 21:21:57 +01:00
Stokes52andGitHub 39b5d3462d Adds new ERT laser carbine item and inhand sprites (#19512) 2022-11-02 21:10:45 +01:00
Bm0nandGitHub c4ded4b083 Ports TG direction signs (#19506)
* signs

* whoops forgot the desc

* evacfix
2022-11-02 21:03:05 +01:00
Stokes52andGitHub 938f04d406 Add buttoned and unbuttoned sprites for trenchcoat (#19491) 2022-11-02 21:01:58 +01:00
LynxSolsticeandGitHub 1f6f48e99a Removes gibbing animation (#19492)
* Removes gibbing animation

* small fix
2022-11-02 20:47:03 +01:00
warriorstar-orionandGitHub 85f4503d33 Refactor announcements. (#19459)
* Refactor announcements.

* Actually make this a unit test

* Dumb

* Remove unnecessary 'as text'

* Reviews:

- Make CSS class a recognizable word
- Flip the defaults for logging

Also:

- Style fixes (default null in fields)
- Fix emergency/crew-transfer shuttle announcement titles
2022-11-02 20:31:37 +01:00
ElorgRHGandGitHub e63526cfdd Paradise's soul removal part four and five: jumpsuits and caps resprite simple as (#19424)
* New jumpsuits

* ... and new softcaps

* New colors for jumpsuits

* New colors for onmob softcaps

* "New" softcap obj sprites

* Un-mirrors the N

* Swaps the green and lightgreen obj sprites around, oops

* Deconflict

* Tweaks obj sprites for softcaps a bit

* New softcaps for corgis
2022-11-02 20:26:39 +01:00
a7bef74380 Makes cult spear not an instant stun. (#19343)
* Makes cult spear not an instant stun.

* Apply suggestions from code review

Co-authored-by: Farie82 <farie82@users.noreply.github.com>

* requested changes

Co-authored-by: Farie82 <farie82@users.noreply.github.com>
2022-11-02 20:23:40 +01:00
d5b261407e Adds Radial Menus to Cyborg Module and Sprite selection (#19234)
* 1

* expand radius

* added combat droid back, gotta test whether force_modules can let the ERT secborg in

* holy crap i think it might be ready

* Update code/modules/mob/living/silicon/robot/robot.dm

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>

* Update code/modules/mob/living/silicon/robot/robot.dm

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>

* change initialise to initialize, and update the sec/combat radial icon's name to be more self-explanatory

Co-authored-by: Sirryan2002 <80364400+Sirryan2002@users.noreply.github.com>
2022-11-02 20:21:22 +01:00
Vi3triceandGitHub 599221a602 doh (#19566) 2022-11-02 14:22:04 +00:00
LucandGitHub d00d53803f Require lying down for a surgery step to operate (#19570) 2022-11-01 21:33:32 +00:00
Coolrune206andGitHub 447edfdf83 converts laser slugs to laser scatter shot (#19552) 2022-11-01 20:51:08 +01:00
AffectedArc07andGitHub aa327a4e32 Library update + Some 515 compat (#19556)
* Library update + 515 compat

* Lets not ship debug info, inflating the files 10x+

* CRLF -> LF
2022-11-01 20:47:12 +01:00
matttheficusandGitHub 09948d54b2 Deputizing the Detective (#19558)
* Deputizing the Detective

* access giveth

* the gun now hurts you again

as per Hal's comment in discord

* add noir to detdrobe
2022-10-31 23:15:12 +00:00
Nathan WintersandGitHub 25f7b57fc5 Small Medbot patient analysis and injection refactor (#19353)
* Gee medbot! How come your mom lets you have 26 extra parentheses?

* Check order consistency

* Avoid searching through viruses if already treated for them

* Simplify assessment logic for custom beakers

* Simplify assessment logic for viruses

* Fix medbots not considering all of patient's viruses

* Bool readability

* Fix medbots ignoring viruses if patient has no damage

* Fix medbots not considering loaded beaker when assessing treatment for viruses

* Fix inconsistent virus check between assessment and medication logic

* Check order consistency 2.0

* Fix medbots getting confused when patient has regular drug but no beaker drugs

* Refactor patient assessment

* Condense a loaded beaker volume check

* Extract virus assessment into separate proc
2022-10-31 18:08:11 -05:00
Vi3triceandGitHub 05d93f665a [TM] Port TG Jump Point Search and SSpathfinder (#18984)
* move along move along

* Update bot.dm

* Diagonals are now more expensive

* Update path.dm

* Update parrot.dm

* Update path.dm

* Tweaks

* Fix cleanbot, add path safety

* Tweaked, added a safety, removed the previous one

* Update medbot.dm

* path.len isn't very safe as a whole, floorbots also had order of operations wrong

* Update medbot.dm

* clings not even once

* Back to the drawing board

* Update path.dm

* Make mules actually clear the drawn path.

* Make bots use step_towards unconditionally instead of flipping between step_to and Move

* Making extra sure the path is cleared. Somehow path was left over.

* Check for length as get_path_to is always true

* This and that
2022-10-30 15:54:51 +00:00
Farie82andGitHub d253e13c35 Add a comment for item_state (#19534) 2022-10-30 15:52:21 +00:00
FloFluoroandGitHub 9e78880036 Fixes punctuation on mob descriptions (#19533) 2022-10-30 15:52:00 +00:00
Vi3triceandGitHub b12c751d48 It's getting confused with that macro (#19521) 2022-10-30 15:51:08 +00:00
7c303ea545 Add inhand sprites for retro laser, immolator, and their variants (#19509)
Co-authored-by: Christian Stokes <christian.stokes@liferay.com>
2022-10-30 15:50:04 +00:00
9f011740da Nerfs Cult Juggernaut. Removed reflection (#19461)
* Nerfs Cult Juggernaut. Removed reflection

* bringing back jugger armor without reflections

* comment and playstyle sting changed

* Update code/modules/mob/living/simple_animal/constructs.dm

Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>

Co-authored-by: S34N <12197162+S34NW@users.noreply.github.com>
2022-10-30 15:49:27 +00:00
Vi3triceandGitHub b7389e3c81 [GBP no update] PDAs only hold one pen at a time (#19516)
* You hold one pen only

* Update PDA.dm

* Update PDA.dm
2022-10-28 22:07:29 +02:00