Skip to content

Commit

Permalink
Chemical Overhaul Part 3
Browse files Browse the repository at this point in the history
  • Loading branch information
realforest2001 committed Mar 3, 2024
1 parent 0f5a5c2 commit 3bc641f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions code/modules/borer/borer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ GLOBAL_LIST_EMPTY(living_borers)
/datum/action/innate/borer/leave_body,
/datum/action/innate/borer/scan_chems,
/datum/action/innate/borer/make_chems,
/datum/action/innate/borer/learn_chems,
)
var/list/actions_xenohost = list(
/datum/action/innate/borer/helpme,
Expand Down Expand Up @@ -526,6 +527,18 @@ GLOBAL_LIST_EMPTY(living_borers)
return
borerscan(B, B.host)

/datum/action/innate/borer/learn_chems
name = "Learn Chemicals"
action_icon_state = "borer_human_learn"

/datum/action/innate/borer/learn_chems/action_activate()
if(!isborer(owner)) return FALSE
var/mob/living/carbon/cortical_borer/B = owner
if(B.hibernating)
to_chat(B, SPAN_WARNING("You cannot do that while hibernating!"))
return
B.learn_chemicals()

/datum/action/innate/borer/make_larvae
name = "Reproduce"
action_icon_state = "borer_reproduce"
Expand Down
4 changes: 3 additions & 1 deletion code/modules/borer/borer_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
else if(isxeno(host))
options += list("Assuming Control","Hibernation","Reproducing")
else
options += list("Assuming Control","Hibernation","Secreting Chemicals","Reproducing", "Host Death")
options += list("Assuming Control","Hibernation","Secreting Chemicals","Learning Chemicals","Reproducing", "Host Death")

var/choice = tgui_input_list(target, "What would you like help with?", "Help", options, 20 SECONDS)

Expand Down Expand Up @@ -47,6 +47,8 @@
help_message = "Hibernation is how you purify contaminants from your body, allowing you to use your enzymes more freely.\n\nYou can only hibernate whilst inside a host, and it renders you unable to act other than to speak to your host.\n\nYou can freely enter or leave hibernation by clicking the Hibernate button."
if("Secreting Chemicals")
help_message = "Whilst inside a humanoid host you can secrete chemicals to facilitate your relationship.\nThese can vary from helpful medications to harmful control measures.\n\nSecreting chemicals costs enzymes and if a chemical is impure will cause you to gain contaminant.\nIf you are at, or will go over, your contaminant capacity you will be unable to secrete chemicals.\nPure chemicals are chemicals native to borers such as Cortical Enzyme."
if("Learning Chemicals")
help_message = "Whilst inside a humanoid host you can learn new chemicals to synthesise, costing [BORER_REPLICATE_COST] Enzymes.\n\nThis requires your host to have a chemical in their blood you do not already know, and for that chemical to be in a state of Overdose.\n\nLearning the chemical has a chance to fail, consuming enzymes but producing no results. This is determined by the number of properties the chemical has.\nSuccessful replication of the chemical will permanently allow you to reproduce it.\nSuccessful or not, attempting to replicate a chemical will consume 90% of the amount in your host's bloodstream."
if("Host Death")
help_message = "Upon the death of your host you will be forced to release direct control (if you are currently in control), but otherwise will be largely unaffected. If your host becomes permanently unreviavable however, you will be ejected from their corpse."
if(!help_message)
Expand Down
Binary file modified icons/mob/hud/actions_borer.dmi
Binary file not shown.

0 comments on commit 3bc641f

Please sign in to comment.