mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-13 08:03:43 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user