Fixes genetics

This commit is contained in:
Alek2ander
2015-01-20 23:01:35 +03:00
parent e979bc95b1
commit 6eee450855
3 changed files with 8 additions and 6 deletions
+3
View File
@@ -21,6 +21,9 @@
/datum/mutation/human/chameleon
name = "Chameleon"
quality = POSITIVE
get_chance = 10
lowest_value = 256 * 14
text_gain_indication = "<span class='notice'>You feel one with your surroundings.</span>"
text_lose_indication = "<span class='notice'>You feel oddly exposed.</span>"
+3 -3
View File
@@ -28,9 +28,9 @@
/datum/mutation/human/proc/set_se(se_string, on = 1)
if(!se_string || lentext(se_string) < DNA_STRUC_ENZYMES_BLOCKS * DNA_BLOCK_SIZE) return
var/before = copytext(se_string, 1, (dna_block * DNA_BLOCK_SIZE) + 1)
var/injection = num2hex(lowest_value + (rand(1, 256 * 6) * (on ? 1 : -1)))
var/after = copytext(se_string, (dna_block * DNA_BLOCK_SIZE) + DNA_BLOCK_SIZE + 1)
var/before = copytext(se_string, 1, ((dna_block - 1) * DNA_BLOCK_SIZE) + 1)
var/injection = num2hex(on ? rand(lowest_value, (256 * 16) - 1) : rand(0, lowest_value - 1), DNA_BLOCK_SIZE)
var/after = copytext(se_string, (dna_block * DNA_BLOCK_SIZE) + 1, 0)
return before + injection + after
/datum/mutation/human/proc/set_block(mob/living/carbon/owner, on = 1)