mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-30 08:39:12 +01:00
Clarification and fix
This commit is contained in:
@@ -500,8 +500,8 @@
|
|||||||
if(href_list["b_escapechance"])
|
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.\
|
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.\
|
Stomach special interactions must be enabled for this to work.\
|
||||||
Ranges from 0 to 100.\n\
|
Ranges from -1(disabled) to 100.\n\
|
||||||
(0-100)", "Prey Escape Chance") as num|null
|
(-1-100)", "Prey Escape Chance") as num|null
|
||||||
if(escape_chance_input)
|
if(escape_chance_input)
|
||||||
escape_chance_input = round(text2num(escape_chance_input),4)
|
escape_chance_input = round(text2num(escape_chance_input),4)
|
||||||
selected.escapechance = sanitize_integer(escape_chance_input, 0, 100, selected.escapechance)
|
selected.escapechance = sanitize_integer(escape_chance_input, 0, 100, selected.escapechance)
|
||||||
@@ -509,8 +509,8 @@
|
|||||||
if(href_list["b_absorbchance"])
|
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].\
|
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.\
|
Stomach special interactions must be enabled for this to work.\
|
||||||
Ranges from 0 to 100.\n\
|
Ranges from -1(disabled) to 100.\n\
|
||||||
(0-100)", "Prey Absorb Chance") as num|null
|
(-1-100)", "Prey Absorb Chance") as num|null
|
||||||
if(absorb_chance_input)
|
if(absorb_chance_input)
|
||||||
absorb_chance_input = round(text2num(absorb_chance_input),4)
|
absorb_chance_input = round(text2num(absorb_chance_input),4)
|
||||||
selected.absorbchance = sanitize_integer(absorb_chance_input, 0, 100, selected.absorbchance)
|
selected.absorbchance = sanitize_integer(absorb_chance_input, 0, 100, selected.absorbchance)
|
||||||
@@ -518,8 +518,8 @@
|
|||||||
if(href_list["b_digestchance"])
|
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].\
|
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.\
|
Stomach special interactions must be enabled for this to work.\
|
||||||
Ranges from 0 to 100.\n\
|
Ranges from -1(disabled) to 100.\n\
|
||||||
(0-100)", "Prey Digest Chance") as num|null
|
(-1-100)", "Prey Digest Chance") as num|null
|
||||||
if(digest_chance_input)
|
if(digest_chance_input)
|
||||||
digest_chance_input = round(text2num(digest_chance_input),4)
|
digest_chance_input = round(text2num(digest_chance_input),4)
|
||||||
selected.digestchance = sanitize_integer(digest_chance_input, 0, 100, selected.digestchance)
|
selected.digestchance = sanitize_integer(digest_chance_input, 0, 100, selected.digestchance)
|
||||||
@@ -531,7 +531,7 @@
|
|||||||
(10-600)", "Prey Escape Time") as num|null
|
(10-600)", "Prey Escape Time") as num|null
|
||||||
if(escape_time_input)
|
if(escape_time_input)
|
||||||
escape_time_input = round(text2num(escape_time_input),4)
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user