Skip to content

Commit

Permalink
Merge branch 'asfharh' of https://github.com/ARF-SS13/coyote-bayou in…
Browse files Browse the repository at this point in the history
…to asfharh
  • Loading branch information
Tk420634 committed Jan 7, 2025
2 parents 33769ed + 54f9246 commit c734dba
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 10 deletions.
2 changes: 1 addition & 1 deletion code/controllers/subsystem/chat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ SUBSYSTEM_DEF(chat)
priority = FIRE_PRIORITY_CHAT
init_order = INIT_ORDER_CHAT

var/forbid_ghosting = TRUE
var/forbid_ghosting = FALSE
var/chat_display_plane = RUNECHAT_PLANE
/*
** Base
Expand Down
23 changes: 21 additions & 2 deletions code/datums/components/spawner.dm
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,11 @@
var/atom/P = parent
for(var/mob/living/butt in LAZYACCESS(SSmobs.clients_by_zlevel, P?.z)) // client-containing mobs, NOT clients
var/mrange = (get_dist(P, butt))
if(mrange <= range && mrange > min_range)
return TRUE
if(mrange <= range)
if(am_special)
return TRUE
else if(mrange > min_range)
return TRUE

/// first checks if anyone is in range, then if so, turns itself on for another 20ish seconds
/datum/component/spawner/proc/old_spawn()
Expand All @@ -346,8 +349,24 @@
// return
// activate()
if(something_in_range())
if(!am_special && blocked())
return
try_to_spawn()

/// checks if we're blocked by something
/datum/component/spawner/proc/blocked()
var/atom/A = parent
var/turf/here = get_turf(A)
for(var/obj/structure/respawner_blocker/RB in SSmonster_wave.spawn_blockers)
if(here.z != RB.z)
continue
var/maxdist = RB.protection_radius
if(maxdist <= 0)
continue
if(get_dist(RB, here) <= maxdist)
RB.blocked_something()
return TRUE

/// turns itself on for another 20ish seconds
/datum/component/spawner/proc/activate()
active = TRUE
Expand Down
4 changes: 2 additions & 2 deletions code/game/objects/hand_items.dm
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ touch + help + facing their rear = pat back
. = ..()
AddComponent(/datum/component/knockback, 1, FALSE, TRUE)

/obj/item/hand_item/tail/attack(mob/living/M, mob/living/user)
/obj/item/hand_item/tail/afterattack(mob/living/M, mob/living/user)
. = ..()
user.spin(4, 1) // SPEEN

Expand Down Expand Up @@ -885,7 +885,7 @@ touch + help + facing their rear = pat back
flags_1 = CONDUCT_1
force = 0

/obj/item/hand_item/butt/attack(mob/living/M, mob/living/user)
/obj/item/hand_item/butt/afterattack(mob/living/M, mob/living/user)
. = ..()
user.spin(4, 1) // SPEEN

Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/cards_ids.dm
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@


/obj/item/card/Initialize(mapload)
. = ..()
if(this_is_easier_than_actually_removing_them)
// if(prob(50))
// SSartifacts.spawn_random_artifact(loc)
return INITIALIZE_HINT_QDEL
. = ..()

/obj/item/card/ComponentInitialize()
. = ..()
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/emote.dm
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@
/datum/emote/living/carbon/tailer/run_emote(mob/living/user)
. = ..()
if(user.get_active_held_item())
to_chat(user, span_warning("Your brains too busy to use your tail right now, maybe empty up your hands a bit?"))
to_chat(user, span_warning("Your hands are too busy to use your tail right now, maybe empty up your hands a bit?"))
return
var/which_tail_to_spawn
if(LAZYLEN(user.mob_quirks))//Check if we need to do all these expensive checks
Expand Down
1 change: 0 additions & 1 deletion code/modules/mob/living/carbon/human/examine.dm
Original file line number Diff line number Diff line change
Expand Up @@ -943,4 +943,3 @@ GLOBAL_LIST_INIT(personalitytrait2description, list(
*/



3 changes: 1 addition & 2 deletions modular_roguetown/todo/trees/treestuff.dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,4 @@ SUBSYSTEM_DEF(treesetup)
T.build_leafs()

initialize_me = list()



0 comments on commit c734dba

Please sign in to comment.