Skyrat-tg icon indicating copy to clipboard operation
Skyrat-tg copied to clipboard

[MIRROR] /mob/living/simple_animal is now frozen. Add a unit test to block all new simple_animal subtypes. [MDB IGNORE]

Open SkyratBot opened this issue 2 years ago • 3 comments

Original PR: https://github.com/tgstation/tgstation/pull/70669

@ tralezab has assured me that basic mobs are now intuitive enough to be copied and pasted from even by more novice coders. He is also actively working on a contribution guide on how to transition old simple mobs, and how to create new basic mobs.

With this, we have agreed to completely freezing simple_animal. All new "simple" mobs MUST be basic mobs. Ask maintainers, especially Armhulen, for help in conversion.

As simple_animals get removed, they will be removed from the list (to prevent a compile error). If a non-simple_animal is in the list, likely through a botched find and replace, the test will fail. You need an extremely good reason to add to this list. Remember that nobody intends to do the wrong thing, but we will never get rid of these if we make exceptions.

SkyratBot avatar Oct 21 '22 03:10 SkyratBot

Now the hard question of do we a) Add our custom simple mobs to the whitelist for now b) Delete them c) Port all of them to be basic mobs before merging this

Tastyfish avatar Oct 21 '22 18:10 Tastyfish

Now the hard question of do we a) Add our custom simple mobs to the whitelist for now b) Delete them c) Port all of them to be basic mobs before merging this

A is the only sane option

tf-4 avatar Oct 24 '22 09:10 tf-4

C is the correct option as we will be deleting the simple_animal path when we are done with it

Iamgoofball avatar Oct 24 '22 09:10 Iamgoofball

Probably going to keep this as a draft as a reminder. I'm holding off on converting any of the hostiles, as the subtrees and behaviors for combat stuff is still in heavy flux, and I kinda want to see if tg makes hostile "human" mobs be actual humans with ai controllers, or basic mobs.

Tastyfish avatar Oct 29 '22 20:10 Tastyfish

We follow along, add all our currents to the whitelist, and refactor them as we can (and hopefully not never)

We'll notice when refactors of simple mobs are coming through the mirrors

Funce avatar Nov 11 '22 00:11 Funce

This has already been merged in due to #17215, however we still need our own types to be added.

Funce avatar Nov 13 '22 23:11 Funce

This has already been merged in due to #17215, however we still need our own types to be added.

Yep, I just didn't merge in the addition to _unit_tests.dm so that animals could merge but the test would be circumvented. I'm fine with this though.

Tastyfish avatar Nov 14 '22 19:11 Tastyfish