Clarification and fix

This commit is contained in:
Cameron653
2016-12-12 18:31:42 -05:00
committed by GitHub
parent 6b90cb2279
commit 2c234591c8

View File

@@ -500,8 +500,8 @@
if(href_list["b_escapechance"])
var/escape_chance_input = input(user, "Choose the (%) chance that prey that attempt to escape will be able to escape.\
Stomach special interactions must be enabled for this to work.\
Ranges from 0 to 100.\n\
(0-100)", "Prey Escape Chance") as num|null
Ranges from -1(disabled) to 100.\n\
(-1-100)", "Prey Escape Chance") as num|null
if(escape_chance_input)
escape_chance_input = round(text2num(escape_chance_input),4)
selected.escapechance = sanitize_integer(escape_chance_input, 0, 100, selected.escapechance)
@@ -509,8 +509,8 @@
if(href_list["b_absorbchance"])
var/absorb_chance_input = input(user, "Choose the (%) chance that prey that attempt to escape will be absorbed into your [selected.name].\
Stomach special interactions must be enabled for this to work.\
Ranges from 0 to 100.\n\
(0-100)", "Prey Absorb Chance") as num|null
Ranges from -1(disabled) to 100.\n\
(-1-100)", "Prey Absorb Chance") as num|null
if(absorb_chance_input)
absorb_chance_input = round(text2num(absorb_chance_input),4)
selected.absorbchance = sanitize_integer(absorb_chance_input, 0, 100, selected.absorbchance)
@@ -518,8 +518,8 @@
if(href_list["b_digestchance"])
var/digest_chance_input = input(user, "Choose the (%) chance that prey that attempt to escape will begin to digest inside of your [selected.name].\
Stomach special interactions must be enabled for this to work.\
Ranges from 0 to 100.\n\
(0-100)", "Prey Digest Chance") as num|null
Ranges from -1(disabled) to 100.\n\
(-1-100)", "Prey Digest Chance") as num|null
if(digest_chance_input)
digest_chance_input = round(text2num(digest_chance_input),4)
selected.digestchance = sanitize_integer(digest_chance_input, 0, 100, selected.digestchance)
@@ -531,7 +531,7 @@
(10-600)", "Prey Escape Time") as num|null
if(escape_time_input)
escape_time_input = round(text2num(escape_time_input),4)
selected.digestchance = sanitize_integer(escape_time_input, 10, 600, selected.escapetime)
selected.escapetime = sanitize_integer(escape_time_input, 9, 600, selected.escapetime) //Set to 9 to stop rounding problems.