Converts Watchers and Legions to basic mob AI (#29884)

* Converts basilisks, watchers

* Hivelords and legions

* Hivelordbrood balance adjustment

* New Linters

* Speech fix

---------

Signed-off-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
This commit is contained in:
PollardTheDragon
2025-08-06 01:54:06 -04:00
committed by GitHub
parent d772497e80
commit 1054b263bb
26 changed files with 404 additions and 205 deletions
+4 -2
View File
@@ -158,8 +158,10 @@ RESTRICT_TYPE(/mob/living/basic)
var/is_ranged = FALSE
/// How many shots in a burst?
var/ranged_burst_count = 1
/// How fast do we fire between bursts?
/// How fast do we fire between shots in a burst?
var/ranged_burst_interval = 0.2 SECONDS
/// Time between bursts
var/ranged_cooldown = 2 SECONDS
/// What projectile do we shoot?
var/projectile_type
/// What sound does it make when firing?
@@ -179,7 +181,7 @@ RESTRICT_TYPE(/mob/living/basic)
var/datum/action/innate/hide/hide = new()
hide.Grant(src)
if(is_ranged)
AddComponent(/datum/component/ranged_attacks, projectile_type = projectile_type, projectile_sound = projectile_sound, burst_shots = ranged_burst_count, burst_intervals = ranged_burst_interval)
AddComponent(/datum/component/ranged_attacks, cooldown_time = ranged_cooldown, projectile_type = projectile_type, projectile_sound = projectile_sound, burst_shots = ranged_burst_count, burst_intervals = ranged_burst_interval)
/mob/living/basic/Destroy()
if(nest)