Commit Graph

42 Commits

Author SHA1 Message Date
warriorstar-orion
df0e69332f fix paper wrapping crates (#30482)
* fix paper wrapping crates

* define magic number
2025-09-19 16:05:48 +00:00
warriorstar-orion
e929845ffb make soylent test a bit smarter (#30443) 2025-09-19 14:43:16 +00:00
warriorstar-orion
583e2942bc fix test suite includes (#30470) 2025-09-17 17:36:20 +00:00
warriorstar-orion
3208049a8a Attack chain migration: structures. (#30365)
* Attack chain migration: structures.

* whoops

* wth
2025-09-14 19:21:36 +00:00
warriorstar-orion
fd7e71d0b4 fix cooking step failures (#30349)
* fix cooking step failures

* a timing issue one hopes
2025-09-07 05:57:02 +00:00
kyunkyunkyun
75202c986e Fix and refactor of chainsaws (#28893)
* code improvements

* linters

* oh

* Update spellblade.dm

* Update spellblade.dm

* Update melee.dm

* melee's death

* update paths

* Update code/game/objects/items/weapons/melee/melee.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: kyunkyunkyun <120701975+kyunkyunkyun@users.noreply.github.com>

* fix icon states

---------

Signed-off-by: kyunkyunkyun <120701975+kyunkyunkyun@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
2025-07-23 17:32:47 +00:00
warriorstar-orion
064f0ce221 fix some tests (#29729)
* non airlock stuff

* pain unending

* comment local test define back out

* this needs a room to spawn mobs in
2025-07-09 14:16:36 +00:00
warriorstar-orion
e63415a483 port minebots to basic mobs and add some behavior (#29319)
* port minebots to basic mobs and add some behavior

* remove unused define

* update is_blocked_turf usage

* fix radio, goldgrub, and armor upgrade

* standardize blackboard names

* Apply suggestions from code review

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: warriorstar-orion <orion@snowfrost.garden>

* lewc review

* whoops

* Apply suggestions from code review

Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Signed-off-by: warriorstar-orion <orion@snowfrost.garden>

---------

Signed-off-by: warriorstar-orion <orion@snowfrost.garden>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
2025-06-13 19:48:40 +00:00
warriorstar-orion
45e88ffb71 refactor is_blocked_turf (#29324) 2025-05-21 00:43:45 +00:00
Toastical
505faec726 Makes antidrop implant release its items regardless which slot theyre in (#29242)
* removed nodrop check, changed anti_drop implant

* anti_drop test

* some touches
2025-05-12 20:52:57 +00:00
warriorstar-orion
58967ee12e elementize pet collars (#29209) 2025-05-07 22:31:17 +00:00
warriorstar-orion
29935d7db9 Datumize job assignment. (#28521)
* Datumize job assignment.

* fix arg

* correct argument type passing

* lewc review 1

* Apply suggestions from code review

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: warriorstar-orion <orion@snowfrost.garden>

* Apply suggestions from code review

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: warriorstar-orion <orion@snowfrost.garden>

* microptimizations for iterations

* shit, not this one

* make logging more consistent

* copy over head/antag roll logic

* okay we're done with dumb boutique logging sinks

* this is the same proc

* this is the same proc

* fix build

* more logging and check command position availability

* tighten up some logic

* mostly tiny tweaks

* tweak logs

* add step type for latejoin

---------

Signed-off-by: warriorstar-orion <orion@snowfrost.garden>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
2025-05-04 18:23:46 +00:00
kyunkyunkyun
e48f4ddbf3 Make sinks/toilets/showers directional for mapping (#28940)
* update watercloset.dm (again)

* add missing returns and armor check

* updatepaths

* maybe now

* try this

* should be better

* paths

* sleep doesn't work

* is it better

* he slips xdd

* this

* come on

* ok i can't beat the grab
2025-04-26 18:06:38 +00:00
CRUNCH
11fa22bf10 Buffs APC Construction/Deconstruction (#28795)
* initial commit

* Update apc_construction.dm

* Apply suggestions from code review

Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com>

* speed

---------

Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com>
Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
2025-04-18 22:07:56 +00:00
warriorstar-orion
efc8adb6dd Basic mobs targeting, attacks, and pig migration. (#28987)
* Basic mobs targeting, attacks, and pig migration.

* run updatepaths

* fix duplicate macro def

* Update code/datums/ai/basic_mobs/basic_ai_behaviors/basic_attacking.dm

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Signed-off-by: warriorstar-orion <orion@snowfrost.garden>

---------

Signed-off-by: warriorstar-orion <orion@snowfrost.garden>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
2025-04-15 14:45:56 +00:00
chuga-git
5c8ba2ee4e Ports rust_g -> rustlibs: logging, toml, dmi, json, and noisegen (#28858)
* Rustlibs logging, toml, dmi, and dbpnoise

* missed one

* Hopefully fix logging utf-8 decode errors

* Fuck

* Build Rust library

* ports rust_g json validator

* rustlibs_file clippy lint

* Build Rust library

* fix merge conflict

---------

Co-authored-by: paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
2025-04-11 17:45:45 +00:00
CRUNCH
476c526c69 Atomized APC Construction Update (#28817)
* initial commit

* Update apc_construction.dm

* Apply suggestions from code review

Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com>

* Split

* Update apc.dm

* Update apc.dm

* Update apc.dm

* Update apc.dm

* Update apc.dm

* Apply suggestions from code review

Co-authored-by: warriorstar-orion <orion@snowfrost.garden>
Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com>

* Defines

* Now with 100 percent more tests

* this was not supposed to be here

Whoops!

* Update test_apc_construction.dm

* Update test_apc_construction.dm

* Update test_apc_construction.dm

* Update test_apc_construction.dm

* Update test_apc_construction.dm

* Update test_apc_construction.dm

* Update test_apc_construction.dm

* Update test_apc_construction.dm

* Update test_apc_construction.dm

* Update test_apc_construction.dm

* Update test_apc_construction.dm

* Update test_apc_construction.dm

* Update apc.dm

* Update test_apc_construction.dm

---------

Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com>
Co-authored-by: 1080pCat <96908085+1080pCat@users.noreply.github.com>
Co-authored-by: warriorstar-orion <orion@snowfrost.garden>
2025-04-08 14:20:01 +00:00
warriorstar-orion
46d5f255a2 fix spray container interactions with tables (#28789) 2025-03-26 05:11:14 +00:00
Toastical
73f67ffe18 [Fix] resonator no longer destroys ancient rock (#28542)
* resonator no longer destroys ancient rock

* changed turf in test to a non-ancient type

---------

Co-authored-by: Toastical <toast@toaster.com>
2025-03-23 10:21:41 +00:00
warriorstar-orion
fc373d0fd6 dropper, patch and pill fixes (#28775)
* dropper, patch and pill fixes

* shuffle this around
2025-03-23 09:30:55 +00:00
warriorstar-orion
f9ade844c9 Kitchen rework part 1: machines and recipes. (#28277)
* Kitchen rework part 1: machines and recipes.

* update oldstation

* update updatepaths script number

* fix blank icon test

* remove old deep fryer completely

* fix duped recipes and recipe datum names

* add chef PDA cart to chefdrobe

* nerf grill wood consumption rate

* multiply food for cooking machine rating

* fix runtime

* add cookware to syndie base and oldstation

* remove dupe burger recipe, update syndie/oldstation setups

* nerf potency quality award

* buff burn/ignite times, remove pointless on_fire flag

* more grill woodburn nerf

* meh

* try and unfuck timing issues

* more fixes and icon updates

* more fixes

* more review changes

* fix linter

* disable pcwj debug

* fix grill and deep fryer overlays

* fix timers with no containers

* attempt to fix reagent adding issues

* more cleanups

* allow rped usage

* grammar, null checks, reagent display

* PDA updates, map updates

* fix mats values

* new panel sprites

* recipe fixes, add prep bowl

* revert unused icon file changes

* move this to mesh with smith TM

* remove food quality for now

* New sprites, autochef.

* fix examine text

* reduce oven cook times

* lots of fixes

* fix autochef recipes that start with reagents

* prevent shenanigans

* megapatch 1

* block ingredients behind oven door

* PDA app improvements

* remove unused proc

* fixes for cookbook, descontructions, completed steps

* allow empty containers with a tracker to be claimed

* allow reclaiming

* autochef reliability fixes

* autochef reliability fixes

* fix quality product count

* update updatepaths script

* better stack handling

* more fixes for stacks and reagents

* timers no longer turn off burners automatically

* autochef turn offs and make sure we can see output storage

* add microwave recipe for roundremoving player brains

* Apply suggestions from code review

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Signed-off-by: warriorstar-orion <orion@snowfrost.garden>

* burza review 1

* Apply suggestions from code review

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Signed-off-by: warriorstar-orion <orion@snowfrost.garden>

* fix berry muffin name while i'm here

* grill -> microwave in new tests

* grill -> microwave in new tests, but actually for realsies

* i definitely know what i'm doing

* redundant attack chain setting

* add examine text about clearing buffer

* remove unused vars and start improving docs

---------

Signed-off-by: warriorstar-orion <orion@snowfrost.garden>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
2025-03-23 04:59:08 +00:00
Toastical
9a3ce4e549 2 returns (#28773)
Co-authored-by: Toastical <toast@toaster.com>
2025-03-22 18:59:53 +00:00
warriorstar-orion
1c8dc2b5aa fix pill and patch activate in-hand (#28767) 2025-03-22 07:19:23 +00:00
warriorstar-orion
2429fa5674 interaction fixes for IV bags, chem bags, and syringes (#28765)
* interaction fixes for IV bags, chem bags, and syringes

* no more bap on patch application

* fix spray bottle ranged interact and double nozzle switch
2025-03-22 06:34:33 +00:00
warriorstar-orion
7f4fc92075 reagent container interaction fixes (#28759)
* reagent container interaction fixes

* syringe on table
2025-03-21 23:36:01 +00:00
warriorstar-orion
7eb404f562 attack chain migration: reagent containers (#28699)
* migrate reagent_containers.dm

* applicator migration + game test

* borg hypo migration

* condiment migration + game test

* fixed and expanded applicator game test, helper proc for puppet activate_self

* expanded condiment game test, added negative any_chatlog define

* drinks_base.dm migration

* bottle.dm migrated

* molotov migrated

* cans migrated

* drinking glass migrated

* shot glass migration

* bottles suck

* some fixes

* more bottle.dm

* bottles finally behave

* bottle fixed, shotglass fixed, everfull migrated

* bottle tests

* cyborg trashbag can crush autopickup is broken

* fixed cans insertion into backpacks

* added zone targeting to puppet

* more tests for drinks

* dropper migration

* dropper finished, removed a repeated proc

* smol tweak

* glass containers

* glass containers finished

* fixed can and bottle tests

* molotov test

* drinking glass and started shot glass

* fixed puppet activate_self + done with drinkingglass

* med containers, shuffle tests around a tiny bit

* fix autoinjectors

* remove return value from spawn block

* Apply suggestions from code review

Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
Signed-off-by: warriorstar-orion <orion@snowfrost.garden>

---------

Signed-off-by: warriorstar-orion <orion@snowfrost.garden>
Co-authored-by: Toastical <toast@toaster.com>
Co-authored-by: Toastical <toastical@toaster.com>
Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
2025-03-21 20:42:24 +00:00
Toastical
79b242c400 missing check (#28573)
Co-authored-by: Toastical <toast@toaster.com>
2025-03-08 18:35:16 +00:00
warriorstar-orion
6359d3f41b test suite: mob attack chain (#28440)
* test suite: mob attack chain

* 100% random zone probability in tests
2025-02-20 15:03:21 +00:00
CRUNCH
d05cc7c5cb Migrates /obj/item/melee/baton to the new Attack Chain, Adds Universal Poking (#28241)
* Update stunbaton.dm

* Update stunbaton.dm

* update

* Update stunbaton.dm

* Update code/game/objects/items/weapons/stunbaton.dm

Co-authored-by: warriorstar-orion <orion@snowfrost.garden>
Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com>

* update based on review

* Create test_attack_chain_stunbaton.dm

* update

---------

Signed-off-by: CRUNCH <143041327+Fordoxia@users.noreply.github.com>
Co-authored-by: warriorstar-orion <orion@snowfrost.garden>
2025-02-18 11:11:13 +00:00
Charlie Nolan
9d227fe4aa Reduced dynamic budget at low player count (#28300)
* Reduced dynamic budget at low player count

* Tests

* One linty boy

* I was, uh, making sure the test worked. That definitely wasn't a typo. <.<
2025-02-16 08:02:22 +00:00
warriorstar-orion
8e4dc6165b Separate station/unit tests and disable lavaland procgen and ruin spawning in tests (for now). (#28106)
* Separate station/unit tests and disable lavaland.

* add CI/local test conflict check back
2025-02-08 17:09:00 +00:00
warriorstar-orion
4ec4e4128a fix reagent containers not transferring into protolathes or circuit imprinters (#28225) 2025-02-02 16:59:47 +00:00
Toastical
a959de564d Puppet test activate_self wrapper and negative any_chatlog check (#28209)
* activate_self wrapper for puppet and NOT check for any_chatlog

* fixed helper proc

---------

Co-authored-by: Toastical <toast@toaster.com>
Co-authored-by: Toastical <toastical@toaster.com>
2025-02-02 03:52:10 +00:00
warriorstar-orion
99ad70a5c0 minor test fixture improvements (#28207)
* minor test fixture improvements

* make return values sane
2025-01-31 23:10:03 +00:00
warriorstar-orion
f479ace54f Attack chain migration: /obj/machinery (#27784)
* one at a time let's go

* air alarm

* so many

* meh

* hell

* hell

* hmm

* Attack chain migration: /obj/machinery

* what the fuck?

* hell

* review fixes

* whoops

* fix build

* nuke fixes, more tests

* gland dispsenser and start of autolathe test

* var renames

* small fixes

* i tire of life

* more tests

* more tests

* more tests

* shrink map

* customize autolathe design disk load delay

* cell charger

* fire alarm frame installation test

* funny and burz reviews

* nuke fixes
2025-01-26 00:23:42 +00:00
warriorstar-orion
3db86c80ac Attack Chain Migration: /turf (#27530)
* Attack Chain Migration: /turf

* don't clobber component/signal vars when copying holodeck turfs

* Attack Chain Migration: /turf

* don't clobber component/signal vars when copying holodeck turfs

* Fixes from first round of testing

* rename signals, add afterattack skip

* Update code/game/turfs/simulated/minerals.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: warriorstar-orion <orion@snowfrost.garden>

* Add some tests.

* Update code/game/turfs/simulated/minerals.dm

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
Signed-off-by: warriorstar-orion <orion@snowfrost.garden>

* fix TM issues

* make soap instantaneous and remove hardcoded sleep

* add sentinel value for obj placement direction choice

* fix tests

---------

Signed-off-by: warriorstar-orion <orion@snowfrost.garden>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
2025-01-10 21:15:19 +00:00
warriorstar-orion
db5be68723 Add ability to check chatlog for test assertions. (#27727) 2025-01-08 20:53:51 +00:00
Charlie Nolan
ec84f16ee4 Fix testing and mapload MILLA issues (#27850) 2025-01-07 23:16:57 +00:00
warriorstar-orion
1277a01baa Respect return values of legacy attack in chain negotiation (#27724) 2025-01-06 17:35:20 +00:00
warriorstar-orion
2559287298 Create a map template for tests and use an empty space level for placing it. (#27728)
* Create a dedicated area on Z-1 for tests.

* Place landmarks in testing area, with a 1-tile margin against walls.

* Consolidate map testing behavior and use a clean z-level.

* lint map

* undo SDMM var sanitization on centcomm
2024-12-30 18:25:10 +00:00
warriorstar-orion
33eaf8ae42 Create interaction test harness. (#27643)
* Create interaction test harness.

* retrofit tests, add janicart attack chain tests

* extract puppeteer to separate file

* move puppeteer creation to constructor
2024-12-23 00:20:49 +00:00
warriorstar-orion
bb60a027bf unit->game tests, /tg/ assertions and allocations (#27646)
* unit->game tests, /tg/ assertions and allocations

* whoopsies

* fix lint
2024-12-21 21:19:33 +00:00