Skip to content

Commit

Permalink
Adding Worms
Browse files Browse the repository at this point in the history
  • Loading branch information
EnderMage99 committed Dec 31, 2024
1 parent d2a163e commit 07245e7
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 4 deletions.
9 changes: 9 additions & 0 deletions ModularTegustation/tegu_items/associations/!overwrites.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,12 @@
if(SSmaptype.maptype in SSmaptype.citymaps)
maxHealth = 500
health = 500

/mob/living/simple_animal/hostile/ordeal/amber_dusk/Initialize()
. = ..()
if(SSmaptype.maptype in SSmaptype.citymaps)
melee_damage_lower = 70
melee_damage_upper = 82 // If you get hit by them it's a major skill issue
maxHealth = 1200
health = 1200
can_burrow = FALSE
25 changes: 24 additions & 1 deletion ModularTegustation/tegu_items/associations/cityspawners.dm
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ GLOBAL_VAR_INIT(city_east_enemies, FALSE)
"sweeper",
"bots",
"bloodfiends",
"worms",
)

/obj/effect/landmark/backstreetspawn/Initialize()
Expand Down Expand Up @@ -108,8 +109,14 @@ GLOBAL_VAR_INIT(city_east_enemies, FALSE)
spawning = /mob/living/simple_animal/hostile/humanoid/blood/fiend/boss
else
spawning = /mob/living/simple_animal/hostile/humanoid/blood/fiend
new spawning(get_turf(src))
if("worms")
spawning = /mob/living/simple_animal/hostile/ordeal/amber_bug
if(prob(30))
spawning = /mob/living/simple_animal/hostile/ordeal/amber_dusk

new spawning(get_turf(src))
if (spawning == "worms")
new /mob/living/simple_animal/hostile/ordeal/amber_bug (get_turf(spawning))



Expand All @@ -121,6 +128,7 @@ GLOBAL_VAR_INIT(city_east_enemies, FALSE)
"sweeper",
"bots",
"bloodfiends",
"worms",
)

/obj/effect/landmark/backstreetspawnwest/Initialize()
Expand Down Expand Up @@ -151,7 +159,14 @@ GLOBAL_VAR_INIT(city_east_enemies, FALSE)
spawning = /mob/living/simple_animal/hostile/humanoid/blood/fiend/boss
else
spawning = /mob/living/simple_animal/hostile/humanoid/blood/fiend
if("worms")
spawning = /mob/living/simple_animal/hostile/ordeal/amber_bug
if(prob(30))
spawning = /mob/living/simple_animal/hostile/ordeal/amber_dusk

new spawning(get_turf(src))
if (spawning == "worms")
new /mob/living/simple_animal/hostile/ordeal/amber_bug (get_turf(spawning))


/obj/effect/landmark/backstreetspawneast
Expand All @@ -162,6 +177,7 @@ GLOBAL_VAR_INIT(city_east_enemies, FALSE)
"sweeper",
"bots",
"bloodfiends",
"worms",
)

/obj/effect/landmark/backstreetspawneast/Initialize()
Expand Down Expand Up @@ -192,4 +208,11 @@ GLOBAL_VAR_INIT(city_east_enemies, FALSE)
spawning = /mob/living/simple_animal/hostile/humanoid/blood/fiend/boss
else
spawning = /mob/living/simple_animal/hostile/humanoid/blood/fiend
if("worms")
spawning = /mob/living/simple_animal/hostile/ordeal/amber_bug
if(prob(30))
spawning = /mob/living/simple_animal/hostile/ordeal/amber_dusk

new spawning(get_turf(src))
if (spawning == "worms")
new /mob/living/simple_animal/hostile/ordeal/amber_bug (get_turf(spawning))
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 07245e7

Please sign in to comment.