mirror of
https://github.com/KabKebab/GS13.git
synced 2026-07-18 03:21:30 +01:00
Reworks Dwarfism and Adds Giantism
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#define MUTATE /datum/mutation/human/bad_dna
|
||||
#define COUGH /datum/mutation/human/cough
|
||||
#define DWARFISM /datum/mutation/human/dwarfism
|
||||
#define GIANTISM /datum/mutation/human/giantism
|
||||
#define CLOWNMUT /datum/mutation/human/clumsy
|
||||
#define TOURETTES /datum/mutation/human/tourettes
|
||||
#define DEAFMUT /datum/mutation/human/deaf
|
||||
@@ -151,4 +152,4 @@
|
||||
//used for the can_chromosome var on mutations
|
||||
#define CHROMOSOME_NEVER 0
|
||||
#define CHROMOSOME_NONE 1
|
||||
#define CHROMOSOME_USED 2
|
||||
#define CHROMOSOME_USED 2
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
owner.throw_at(target, cough_range, GET_MUTATION_POWER(src))
|
||||
|
||||
|
||||
//Dwarfism shrinks your body and lets you pass tables.
|
||||
//Dwarfism shrinks your body.
|
||||
/datum/mutation/human/dwarfism
|
||||
name = "Dwarfism"
|
||||
desc = "A mutation believed to be the cause of dwarfism."
|
||||
@@ -80,17 +80,43 @@
|
||||
/datum/mutation/human/dwarfism/on_acquiring(mob/living/carbon/human/owner)
|
||||
if(..())
|
||||
return
|
||||
owner.transform = owner.transform.Scale(1, 0.8)
|
||||
owner.pass_flags |= PASSTABLE
|
||||
if(owner.size_multiplier <= RESIZE_A_TINYMICRO) //Because what's optimization?
|
||||
return
|
||||
owner.resize(owner.size_multiplier-0.2)
|
||||
owner.visible_message("<span class='danger'>[owner] suddenly shrinks!</span>", "<span class='notice'>Everything around you seems to grow..</span>")
|
||||
|
||||
/datum/mutation/human/dwarfism/on_losing(mob/living/carbon/human/owner)
|
||||
if(..())
|
||||
return
|
||||
owner.transform = owner.transform.Scale(1, 1.25)
|
||||
owner.pass_flags &= ~PASSTABLE
|
||||
if(owner.size_multiplier >= RESIZE_A_MACROHUGE)
|
||||
return
|
||||
owner.resize(owner.size_multiplier+0.2)
|
||||
owner.visible_message("<span class='danger'>[owner] suddenly grows!</span>", "<span class='notice'>Everything around you seems to shrink..</span>")
|
||||
|
||||
//Giantism grows your body.
|
||||
/datum/mutation/human/giantism
|
||||
name = "Giantism"
|
||||
desc = "A mutation believed to be the cause of giantism."
|
||||
quality = POSITIVE
|
||||
difficulty = 14
|
||||
instability = 5
|
||||
locked = TRUE
|
||||
|
||||
/datum/mutation/human/giantism/on_acquiring(mob/living/carbon/human/owner)
|
||||
if(..())
|
||||
return
|
||||
if(owner.size_multiplier >= RESIZE_A_MACROHUGE)
|
||||
return
|
||||
owner.resize(owner.size_multiplier+0.2)
|
||||
owner.visible_message("<span class='danger'[owner] expands in size!</span>", "<span class='notice'>Everything around you compresses smaller...</span>")
|
||||
|
||||
/datum/mutation/human/giantism/on_losing(mob/living/carbon/human/owner)
|
||||
if(..())
|
||||
return
|
||||
if(owner.size_multiplier <= RESIZE_A_TINYMICRO)
|
||||
return
|
||||
owner.resize(owner.size_multiplier-0.2)
|
||||
owner.visible_message("<span class='danger'>[owner] suddenly shrinks back down!", "<span class='notice'>You shrink back down in size.</span>")
|
||||
|
||||
//Clumsiness has a very large amount of small drawbacks depending on item.
|
||||
/datum/mutation/human/clumsy
|
||||
@@ -259,4 +285,4 @@
|
||||
owner.jitteriness = min(max(0, owner.jitteriness + 5), 30)
|
||||
if(prob(25))
|
||||
to_chat(owner,"<span class='warning'>You feel someone creeping in on you...</span>")
|
||||
owner.hallucination += 20
|
||||
owner.hallucination += 20
|
||||
|
||||
@@ -140,6 +140,15 @@
|
||||
desc = "It's a small world after all."
|
||||
add_mutations = list(DWARFISM)
|
||||
|
||||
/obj/item/dnainjector/antigiant
|
||||
name = "\improper DNA injector (Anti-Giantism)"
|
||||
desc = "Makes you small and weak."
|
||||
remove_mutations = list(GIANTISM)
|
||||
|
||||
/obj/item/dnainjector/giant
|
||||
name = "\improper DNA injector (Giantism)"
|
||||
desc = "Makes you bigger."
|
||||
|
||||
/obj/item/dnainjector/clumsymut
|
||||
name = "\improper DNA injector (Clumsy)"
|
||||
desc = "Makes clown minions."
|
||||
|
||||
Reference in New Issue
Block a user