Commit Graph

22 Commits

Author SHA1 Message Date
Aronai Sieyes
26940c7e12 Various small fixes (#8112)
* Make nurse spiders forget target

* Tweak or break AI

* Fixes ice edges

* Allow better mapped-in marker beacons

* Allow mapped-in graffiti

* Add spaceship hull corners

* Improve hull corner color finding slightly
2021-05-29 10:08:39 -09:00
Neerti
fdabe51ee8 Linter Introduction + Cleanup (#8085)
* Adds linter defines to repo.

* Uncomments linter defines already in the code.

* Resolves unreachable code linter errors.

* Nukes decade+ old syndie specops code except for computer since that's mapped in?????

* Resolves procs has no parent linter error.

* Proc signature fixes

* Bad comments

* "In" danger

* Type safety

* Implied nested list abuse

* Top level ..() usage

* Sleepy coder typos

* Invalid kwargs calls

* Pointless returns

* Linter hacks (see full message)

Byond doesn't care and it has no effect but linter doesn't like var/proc
for holding references to procs, despite that it's valid byond code.

Also, the linter seems to have serious issues figuring out relative
proc names. This commit is a sort of take-it-or-leave-it thing. It's not
required, it just cuts down on warnings, but this code is valid DM code.

* WHATEVER THIS IS

* Trick dreamchecker linter into ignoring this file's sins in it's weird use of vars

* Fix list decoration syntax - Its a list, not list of lists

- To declare that a var is a list you can `var/list/blah = list()` syntax or the `var/blah[0]` syntax.  Both do exactly the same thing. But if you do `var/list/blah[0]` that is just like doing `var/list/list/blah = list()`

* Hopefully stops the ai holder subtype folder from going quantum and sometimes changes capitalization over time, and incidentally causing 20+ linter errors.

* Fixes unwrapped negated object in list linter error.

* Resolves colon-like list accessing linter error.

* Turns linter on in linter config.

* Fixes closet indentation properly and cleans up suit storage unit switch.

Co-authored-by: Aronai Sieyes <arokha@arokha.com>
Co-authored-by: Leshana <Leshana@users.noreply.github.com>
2021-05-25 18:17:26 -09:00
atermonera
485e5f6549 Simplemobs seek lost targets 2021-04-26 01:50:03 -09:00
Neerti
e3d24906d9 Fixes Arachnophobia Exploit (#7410)
* Fixes arachnophobia exploit.

* Forgot to remove copypasta.
2020-08-06 21:08:00 -07:00
Aronai Sieyes
c170436256 Refactor AI into two subsystems 2020-04-27 10:11:49 -04:00
Mechoid
cf5d750519 Blobwork, Human mobs with AIs can attack, AI mobs consider blobs to be enemies unless they're Blob faction. 2020-03-20 12:29:40 -07:00
Aronai Sieyes
149215995b AI Tweak bugfixes (#6779) 2020-03-03 12:52:52 -08:00
Aronai Sieyes
8e973f5e4e Readd some AI features
Like calling for help and investigating the last known position of enemies
2020-02-23 11:53:55 -05:00
Andrew
86a1b63307 Actually make handle_corpse do something
Whoops
2019-07-08 18:45:08 -05:00
Andrew
c6b040db7b Allows AI to Acknowledge Corpses
Creates the var "handle_corpse"
2019-07-08 18:35:47 -05:00
Mechoid
4429fd7ecb Sif Animal Expansion 1 (#6038)
* Begins work on the Sivian animal expansion.

* Adds the Leech, Shimm, Duck, Raccoon, Frostfly, Glitterfly, and Kururak.

* Changelog.

* FixFix

* Fix possible slur, fix leech.

* Fixfix2
2019-05-21 16:57:34 -07:00
Heroman3003
535349dcce Fixes ai priority targeting 2019-04-25 10:21:44 +10:00
Neerti
9527ab2568 Fixes some AI bugs. (#5895)
* Fixes some AI bugs.

* Fixes new bug introduced in this PR.
2019-01-23 10:54:01 -06:00
Anewbe
152f76c64b Attackers uses strings, not references 2019-01-18 16:51:03 -06:00
Anewbe
59d954fd59 Fixes a few mob AI bugs 2019-01-15 16:50:07 -06:00
Neerti
ac5fdfcd9e Fixes several bugs with AI mobs 2018-12-04 19:00:21 -05:00
Neerti
ef440a4b5f Finishes the other mechs and fixes bug in AI threaten code. 2018-10-14 07:08:21 -04:00
Neerti
16b40f0dcd Works on slimes. 2018-09-13 06:08:13 -04:00
Neerti
7b61dc16c1 Hivebots 2018-05-21 21:12:47 -04:00
Neerti
98ea2b1a2c More spiders. 2018-05-05 13:26:22 -04:00
Neerti
5772ad84ac Begins replacing simple_animal with simple_mob. 2018-04-22 17:25:46 -04:00
Neerti
61bb059ae2 further work 2018-04-03 22:12:50 -04:00