Converts pills and patches into interact_with_atom (#88157)

## About The Pull Request

Title. Code maintenance, code sanity and because overriding attack()
like this is bad

## Changelog
🆑
code: Converted pills and patches into interact_with_atom
/🆑
This commit is contained in:
SmArtKar
2024-11-25 23:21:26 +01:00
committed by GitHub
parent cf53b21d04
commit fc61d427bf
6 changed files with 42 additions and 43 deletions
@@ -50,7 +50,7 @@
TEST_ASSERT_EQUAL(human.health, 100, "Human health did not set properly")
patch.reagents.add_reagent(/datum/reagent/method_patch_test, 1)
patch.self_delay = 0
patch.attack(human, human)
patch.interact_with_atom(human, human)
TEST_ASSERT_EQUAL(human.health, 90, "Human health did not update after patch was applied")
// INJECT