Skip to content

Commit

Permalink
that explains why it said all the code was fine
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Jul 28, 2024
1 parent 8199129 commit e3de27f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 8 deletions.
36 changes: 30 additions & 6 deletions code/modules/borer/borer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "brain_resist"

/datum/action/innate/borer/brain_resist/action_activate()
. = ..()
if(isliving(owner))
var/mob/living/live_owner = owner
live_owner.resist()
Expand Down Expand Up @@ -489,6 +490,7 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_help"

/datum/action/innate/borer/helpme/action_activate()
. = ..()
var/mob/living/carbon/cortical_borer/the_borer
if(!isborer(owner))
if(owner.has_brain_worms())
Expand All @@ -505,6 +507,7 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_talk"

/datum/action/innate/borer/talk_to_host/action_activate()
. = ..()
var/mob/living/carbon/cortical_borer/the_borer = owner
the_borer.Communicate()

Expand All @@ -513,6 +516,7 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_infest"

/datum/action/innate/borer/infest_host/action_activate()
. = ..()
var/mob/living/carbon/cortical_borer/the_borer = owner
the_borer.infest()

Expand All @@ -521,7 +525,9 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_hiding_0"

/datum/action/innate/borer/toggle_hide/action_activate()
if(!isborer(owner)) return FALSE
. = ..()
if(!isborer(owner))
return FALSE
var/mob/living/carbon/cortical_borer/the_borer = owner
the_borer.hide_borer()

Expand All @@ -533,6 +539,7 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_talk"

/datum/action/innate/borer/talk_to_borer/action_activate()
. = ..()
var/mob/living/carbon/cortical_borer/the_borer = owner.has_brain_worms()
the_borer.host_mob = owner
the_borer.host_mob.borer_comm()
Expand All @@ -542,6 +549,7 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_talk"

/datum/action/innate/borer/talk_to_brain/action_activate()
. = ..()
var/mob/living/carbon/cortical_borer/the_borer = owner.has_brain_worms()
the_borer.host_mob = owner
the_borer.host_mob.trapped_mind_comm()
Expand All @@ -551,7 +559,9 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_control"

/datum/action/innate/borer/take_control/action_activate()
if(!isborer(owner)) return FALSE
. = ..()
if(!isborer(owner))
return FALSE
var/mob/living/carbon/cortical_borer/the_borer = owner
if(the_borer.borer_flags_actives & BORER_ABILITY_HIBERNATING)
to_chat(the_borer, SPAN_WARNING("You cannot do that while hibernating!"))
Expand All @@ -563,6 +573,7 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_leave"

/datum/action/innate/borer/give_back_control/action_activate()
. = ..()
var/mob/living/carbon/cortical_borer/the_borer = owner.has_brain_worms()
the_borer.host_mob = owner
the_borer.host_mob.release_control()
Expand All @@ -572,7 +583,9 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_leave"

/datum/action/innate/borer/leave_body/action_activate()
if(!isborer(owner)) return FALSE
. = ..()
if(!isborer(owner))
return FALSE
var/mob/living/carbon/cortical_borer/the_borer = owner
if(the_borer.borer_flags_actives & BORER_ABILITY_HIBERNATING)
to_chat(the_borer, SPAN_WARNING("You cannot do that while hibernating!"))
Expand All @@ -584,7 +597,9 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_human_chems"

/datum/action/innate/borer/make_chems/action_activate()
if(!isborer(owner)) return FALSE
. = ..()
if(!isborer(owner))
return FALSE
var/mob/living/carbon/cortical_borer/the_borer = owner
if(the_borer.borer_flags_actives & BORER_ABILITY_HIBERNATING)
to_chat(the_borer, SPAN_WARNING("You cannot do that while hibernating!"))
Expand All @@ -596,7 +611,9 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_human_scan"

/datum/action/innate/borer/scan_chems/action_activate()
if(!isborer(owner)) return FALSE
. = ..()
if(!isborer(owner))
return FALSE
var/mob/living/carbon/cortical_borer/the_borer = owner
if(the_borer.borer_flags_actives & BORER_ABILITY_HIBERNATING)
to_chat(the_borer, SPAN_WARNING("You cannot do that while hibernating!"))
Expand All @@ -608,7 +625,9 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_human_learn"

/datum/action/innate/borer/learn_chems/action_activate()
if(!isborer(owner)) return FALSE
. = ..()
if(!isborer(owner))
return FALSE
var/mob/living/carbon/cortical_borer/the_borer = owner
if(the_borer.borer_flags_actives & BORER_ABILITY_HIBERNATING)
to_chat(the_borer, SPAN_WARNING("You cannot do that while hibernating!"))
Expand All @@ -620,6 +639,7 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_reproduce"

/datum/action/innate/borer/make_larvae/action_activate()
. = ..()
var/mob/living/carbon/cortical_borer/the_borer = owner.has_brain_worms()
the_borer.host_mob = owner
the_borer.host_mob.spawn_larvae()
Expand All @@ -629,6 +649,7 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_stun"

/datum/action/innate/borer/freeze_victim/action_activate()
. = ..()
var/mob/living/carbon/cortical_borer/the_borer = owner
the_borer.dominate_victim()

Expand All @@ -637,6 +658,7 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_torment"

/datum/action/innate/borer/torment/action_activate()
. = ..()
var/mob/living/carbon/cortical_borer/the_borer = owner.has_brain_worms()
the_borer.host_mob = owner
the_borer.host_mob.punish_host()
Expand All @@ -646,6 +668,7 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_sleeping_0"

/datum/action/innate/borer/hibernate/action_activate()
. = ..()
var/mob/living/carbon/cortical_borer/the_borer = owner
the_borer.hibernate()
button.overlays.Cut()
Expand All @@ -659,5 +682,6 @@ GLOBAL_DATUM_INIT(brainlink, /datum/borer_brainlink, new)
action_icon_state = "borer_transfer"

/datum/action/innate/borer/transfer_host/action_activate()
. = ..()
var/mob/living/carbon/cortical_borer/the_borer = owner.has_brain_worms()
the_borer.transfer_host()
4 changes: 2 additions & 2 deletions code/modules/borer/borer_egg.dm
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
layer = MOB_LAYER
black_market_value = 35

var/hatched = FALSE
var/birth_generation = 1
var/can_reproduce = 1
var/target_flags = BORER_TARGET_HUMANS
Expand Down Expand Up @@ -43,5 +44,4 @@
var/mob/living/carbon/cortical_borer/birthed = new /mob/living/carbon/cortical_borer(loc, birth_generation, TRUE, can_reproduce, target_flags, ancestors)

user.mind.transfer_to(birthed, TRUE)
birthed.visible_message(SPAN_XENODANGER("A facehugger suddenly emerges out of \the [A]!"), SPAN_XENODANGER("You emerge out of \the [A] and awaken from your slumber. For the Hive!"))
playsound(birthed, 'sound/effects/xeno_newlarva.ogg', 25, TRUE)
birthed.visible_message(SPAN_XENODANGER("A Borer suddenly emerges out of \the [src]!"), SPAN_XENODANGER("You emerge out of \the [src] and awaken from your slumber."))
1 change: 1 addition & 0 deletions code/modules/borer/borer_wip.dm
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
action_icon_state = "borer_directive"

/datum/action/innate/borer/update_directive/action_activate()
. = ..()
var/mob/living/carbon/cortical_borer/the_borer = owner
the_borer.update_directive()

Expand Down

0 comments on commit e3de27f

Please sign in to comment.