mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-02 04:52:10 +00:00
Removed generate_uni_identity from randomize_human() proc since it's already called by ready_dna right after.
Simplifies mutation overlay updating code.
This commit is contained in:
@@ -53,6 +53,8 @@
|
||||
return 1
|
||||
owner.dna.mutations.Add(src)
|
||||
owner << text_gain_indication
|
||||
if(visual_indicators.len)
|
||||
owner.update_mutation_overlays()
|
||||
|
||||
/datum/mutation/human/proc/get_visual_indicator(mob/living/carbon/human/owner)
|
||||
return
|
||||
@@ -75,6 +77,8 @@
|
||||
/datum/mutation/human/proc/on_losing(mob/living/carbon/human/owner)
|
||||
if(owner && istype(owner) && (owner.dna.mutations.Remove(src)))
|
||||
owner << text_lose_indication
|
||||
if(visual_indicators.len)
|
||||
owner.update_mutation_overlays()
|
||||
return 0
|
||||
return 1
|
||||
|
||||
@@ -102,7 +106,6 @@
|
||||
if(..())
|
||||
return
|
||||
var/status = CANSTUN | CANWEAKEN | CANPARALYSE | CANPUSH
|
||||
owner.update_mutation_overlays()
|
||||
owner.status_flags &= ~status
|
||||
|
||||
/datum/mutation/human/hulk/on_attack_hand(mob/living/carbon/human/owner, atom/target)
|
||||
@@ -123,7 +126,6 @@
|
||||
if(..())
|
||||
return
|
||||
owner.status_flags |= CANSTUN | CANWEAKEN | CANPARALYSE | CANPUSH
|
||||
owner.update_mutation_overlays()
|
||||
|
||||
/datum/mutation/human/hulk/say_mod(message)
|
||||
if(message)
|
||||
@@ -145,16 +147,6 @@
|
||||
/datum/mutation/human/telekinesis/get_visual_indicator(mob/living/carbon/human/owner)
|
||||
return visual_indicators[1]
|
||||
|
||||
/datum/mutation/human/telekinesis/on_acquiring(mob/living/carbon/human/owner)
|
||||
if(..())
|
||||
return
|
||||
owner.update_mutation_overlays()
|
||||
|
||||
/datum/mutation/human/telekinesis/on_losing(mob/living/carbon/human/owner)
|
||||
if(..())
|
||||
return
|
||||
owner.update_mutation_overlays()
|
||||
|
||||
/datum/mutation/human/telekinesis/on_ranged_attack(mob/living/carbon/human/owner, atom/target)
|
||||
target.attack_tk(owner)
|
||||
|
||||
@@ -173,16 +165,6 @@
|
||||
/datum/mutation/human/cold_resistance/get_visual_indicator(mob/living/carbon/human/owner)
|
||||
return visual_indicators[1]
|
||||
|
||||
/datum/mutation/human/cold_resistance/on_losing(mob/living/carbon/human/owner)
|
||||
if(..())
|
||||
return
|
||||
owner.update_mutation_overlays()
|
||||
|
||||
/datum/mutation/human/cold_resistance/on_acquiring(mob/living/carbon/human/owner)
|
||||
if(..())
|
||||
return
|
||||
owner.update_mutation_overlays()
|
||||
|
||||
/datum/mutation/human/cold_resistance/on_life(mob/living/carbon/human/owner)
|
||||
if(owner.getFireLoss())
|
||||
if(prob(1))
|
||||
|
||||
@@ -20,6 +20,5 @@
|
||||
H.facial_hair_color = H.hair_color
|
||||
H.eye_color = random_eye_color()
|
||||
H.dna.blood_type = random_blood_type()
|
||||
H.dna.generate_uni_identity(H)
|
||||
H.update_body()
|
||||
H.update_hair()
|
||||
Reference in New Issue
Block a user