flight fixes, pick all wing types if second wing potion chugged, a fucking slime species fix

This commit is contained in:
Cognition
2021-12-29 22:20:27 -07:00
parent 9437a97967
commit c1a41394da
4 changed files with 29 additions and 18 deletions
@@ -700,8 +700,9 @@
to_chat(C, "<span class='notice'><i>You feel nothing but a terrible aftertaste.</i></span>")
return ..()
var/has_wings = (C.dna.species.mutant_bodyparts["deco_wings"] && C.dna.features["deco_wings"] != "None" || C.dna.species.mutant_bodyparts["insect_wings"] && C.dna.features["insect_wings"] != "None")
to_chat(C, "<span class='userdanger'>A terrible pain travels down your back as [has_wings ? "your wings transform" : "wings burst out"]!</span>")
C.dna.species.GiveSpeciesFlight(C)
var/has_functional_wings = (C.dna.species.mutant_bodyparts["wings"] != null)
to_chat(C, "<span class='userdanger'>A terrible pain travels down your back as [has_wings || has_functional_wings ? "your wings transform" : "wings burst out"]!</span>")
C.dna.species.GiveSpeciesFlight(C, has_functional_wings ? TRUE : FALSE) //give them the full list of wing choices if this is their second flight potion
to_chat(C, "<span class='notice'>You feel blessed!</span>")
ADD_TRAIT(C, TRAIT_HOLY, SPECIES_TRAIT) //implying anyone is truly holy in a setting where people throw tantrums when things aren't violent
playsound(C.loc, 'sound/items/poster_ripped.ogg', 50, TRUE, -1)