Chemistry: Patch Balance

This commit is contained in:
Fox-McCloud
2015-09-18 22:33:40 -04:00
parent 6a79ff83a1
commit 47d14c3b7e
3 changed files with 7 additions and 5 deletions

View File

@@ -593,7 +593,7 @@
if (href_list["createpatch_multiple"]) count = isgoodnumber(input("Select the number of patches to make.", 10, patchamount) as num)
if (count > 20) count = 20 //Pevent people from creating huge stacks of patches easily. Maybe move the number to defines?
var/amount_per_patch = reagents.total_volume/count
if (amount_per_patch > 50) amount_per_patch = 50
if (amount_per_patch > 40) amount_per_patch = 40
var/name = reject_bad_text(input(usr,"Name:","Name your patch!","[reagents.get_master_reagent_name()] ([amount_per_patch] units)"))
while (count--)
var/obj/item/weapon/reagent_containers/pill/patch/P = new/obj/item/weapon/reagent_containers/pill/patch(src.loc)
@@ -699,7 +699,7 @@
if(!condi)
dat += "<HR><BR><A href='?src=\ref[src];createpill=1'>Create pill (50 units max)</A><a href=\"?src=\ref[src]&change_pill=1\"><img src=\"pill[pillsprite].png\" /></a><BR>"
dat += "<A href='?src=\ref[src];createpill_multiple=1'>Create multiple pills</A><BR>"
dat += "<HR><BR><A href='?src=\ref[src];createpatch=1'>Create patch (50 units max)</A><BR>"
dat += "<HR><BR><A href='?src=\ref[src];createpatch=1'>Create patch (40 units max)</A><BR>"
dat += "<A href='?src=\ref[src];createpatch_multiple=1'>Create multiple patches</A><BR>"
dat += "<A href='?src=\ref[src];createbottle=1'>Create bottle (30 units max)</A>"
else

View File

@@ -5,9 +5,10 @@
icon_state = "bandaid"
item_state = "bandaid"
possible_transfer_amounts = null
volume = 50
volume = 40
apply_type = TOUCH
apply_method = "apply"
transfer_efficiency = 0.5 //patches aren't as effective at getting chemicals into the bloodstream.
/obj/item/weapon/reagent_containers/pill/patch/New()
..()

View File

@@ -11,6 +11,7 @@
volume = 50
var/apply_type = INGEST
var/apply_method = "swallow"
var/transfer_efficiency = 1.0
New()
..()
@@ -32,7 +33,7 @@
if(reagents.total_volume)
reagents.reaction(M, apply_type)
spawn(0)
reagents.trans_to_ingest(M, reagents.total_volume)
reagents.trans_to_ingest(M, reagents.total_volume*transfer_efficiency)
qdel(src)
else
qdel(src)
@@ -66,7 +67,7 @@
if(reagents.total_volume)
reagents.reaction(M, apply_type)
spawn(0)
reagents.trans_to_ingest(M, reagents.total_volume)
reagents.trans_to_ingest(M, reagents.total_volume*transfer_efficiency)
qdel(src)
else
qdel(src)