Merge pull request #59 from Alphas00/master

Naga Tails coiling
This commit is contained in:
evilew
2025-01-07 18:11:11 +01:00
committed by GitHub
2 changed files with 11 additions and 4 deletions
@@ -9,6 +9,8 @@
var/currently_coiling = FALSE
var/mob/living/carbon/human/currently_coiled
var/mutable_appearance/tracked_overlay
//GS13 Edit
var/stored_tail
/datum/action/innate/ability/coiling/Activate()
// make sure they meet the mobility/check flags
@@ -56,6 +58,8 @@
// set our overlay to new image
var/mob/living/carbon/human/user = owner
//GS13 Edit
stored_tail = user.dna.features["taur"]
user.dna.species.mutant_bodyparts["taur"] = "Naga (coiled)"
user.dna.features["taur"] = "Naga (coiled)"
user.update_mutant_bodyparts()
@@ -79,8 +83,9 @@
UnregisterSignal(owner, COMSIG_ATOM_DIR_CHANGE)
// change overlay back to original image
H.dna.species.mutant_bodyparts["taur"] = "Naga"
H.dna.features["taur"] = "Naga"
//GS13 Edit
H.dna.species.mutant_bodyparts["taur"] = stored_tail
H.dna.features["taur"] = stored_tail
H.update_mutant_bodyparts()
H.update_body()
@@ -925,10 +925,12 @@ GLOBAL_LIST_EMPTY(roundstart_race_names)
if(A.type == /datum/action/innate/ability/coiling)
found_action = A
if(found_action && (!tauric || (H.dna.features["taur"] != "Naga" && H.dna.features["taur"] != "Naga (coiled)")))
//GS13 Edit - Adding action for other naga tails
if(found_action && (!tauric || ((H.dna.features["taur"] != "Naga" && H.dna.features["taur"] != "Fat Naga" && H.dna.features["taur"] != "Alt Naga") && H.dna.features["taur"] != "Naga (coiled)")))
found_action.Remove(H)
if(!found_action && tauric && H.dna.features["taur"] == "Naga")
//GS13 Edit - Adding action for other naga tails
if(!found_action && tauric && (H.dna.features["taur"] == "Naga" || H.dna.features["taur"] == "Fat Naga" || H.dna.features["taur"] == "Alt Naga"))
found_action = new /datum/action/innate/ability/coiling()
found_action.Grant(H)