Skip to content

Commit

Permalink
City Amber
Browse files Browse the repository at this point in the history
  • Loading branch information
EnderMage99 committed Jan 10, 2025
1 parent 3a908ad commit 96f49b4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
10 changes: 10 additions & 0 deletions ModularTegustation/tegu_items/associations/!overwrites.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,13 @@
rapid = 10
rapid_fire_delay = 3
projectiletype = /obj/projectile/bullet/c9x19mm/greenbot/city

/mob/living/simple_animal/hostile/ordeal/amber_dusk/Initialize()
. = ..()
if(SSmaptype.maptype in SSmaptype.citymaps)
melee_damage_lower = 45
melee_damage_upper = 50
maxHealth = 800
health = 800
can_burrow = FALSE
attack_cooldown = 100
9 changes: 6 additions & 3 deletions code/modules/mob/living/simple_animal/hostile/ordeal/amber.dm
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@
var/burrowing = FALSE
/// List of currently spawned dawns, so we don't create too many
var/list/spawned_mobs = list()
//If they can burrow or not.
var/can_burrow = TRUE

var/datum/looping_sound/amberdusk/soundloop

Expand Down Expand Up @@ -241,9 +243,10 @@
. = ..()
if(!.) // Dead
return FALSE
if(!burrowing && world.time > burrow_cooldown)
AttemptBirth()
BurrowIn()
if(can_burrow)
if(!burrowing && world.time > burrow_cooldown)
AttemptBirth()
BurrowIn()

/mob/living/simple_animal/hostile/ordeal/amber_dusk/death(gibbed)
if(LAZYLEN(butcher_results))
Expand Down

0 comments on commit 96f49b4

Please sign in to comment.