mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
Merge branch 'master' of https://github.com/tgstation/tgstation into xpokee-test-upstream-sync
This commit is contained in:
@@ -722,12 +722,7 @@
|
||||
icon_state = "babbearfish"
|
||||
|
||||
/datum/bodypart_overlay/simple/babbearfish/can_draw_on_bodypart(obj/item/bodypart/bodypart_owner)
|
||||
var/mob/living/carbon/human/human = bodypart_owner.owner
|
||||
if(!istype(human))
|
||||
return TRUE
|
||||
if((human.head?.flags_inv & HIDEEARS) || (human.wear_mask?.flags_inv & HIDEEARS))
|
||||
return FALSE
|
||||
return TRUE
|
||||
return !(bodypart_owner.owner?.obscured_slots & HIDEEARS)
|
||||
|
||||
/obj/item/organ/ears/babbelfish/Initialize(mapload)
|
||||
. = ..()
|
||||
|
||||
@@ -12,9 +12,13 @@
|
||||
wait_time_range = list(6 SECONDS, 12 SECONDS)
|
||||
|
||||
/datum/fish_source/surgery/spawn_reward(reward_path, atom/spawn_location, atom/fishing_spot, obj/item/fishing_rod/used_rod)
|
||||
if(reward_path != FISHING_RANDOM_ORGAN)
|
||||
return ..()
|
||||
|
||||
if(istype(fishing_spot, /obj/machinery/fishing_portal_generator))
|
||||
var/obj/machinery/fishing_portal_generator/portal = fishing_spot
|
||||
fishing_spot = portal.current_linked_atom
|
||||
|
||||
if(!iscarbon(fishing_spot))
|
||||
var/random_type = pick(subtypesof(/obj/item/organ) - GLOB.prototype_organs)
|
||||
return new random_type(spawn_location)
|
||||
|
||||
Reference in New Issue
Block a user