Merge pull request #10647 from mwerezak/acids

Fixes #10645
This commit is contained in:
Snapshot
2015-08-14 22:22:41 -07:00
10 changed files with 14 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ var/global/list/cached_icons = list()
amount_per_transfer_from_this = 10
possible_transfer_amounts = list(10,20,30,60)
volume = 60
unacidable = 0
flags = OPENCONTAINER
var/paint_type = "red"

View File

@@ -24,6 +24,7 @@
volume = 5
can_be_placed_into = null
flags = OPENCONTAINER | NOBLUDGEON
unacidable = 0
/obj/item/weapon/reagent_containers/glass/rag/attack_self(mob/user as mob)
return

View File

@@ -9,6 +9,7 @@
amount_per_transfer_from_this = 50
// Large, but inaccurate. Use a chem dispenser or beaker for accuracy.
possible_transfer_amounts = list(50, 100)
unacidable = 1
var/spawn_reagent = null
var/label = ""

View File

@@ -9,6 +9,10 @@
var/const/duration = 13 //Directly relates to the 'weaken' duration. Lowered by armor (i.e. helmets)
var/isGlass = 1 //Whether the 'bottle' is made of glass or not so that milk cartons dont shatter when someone gets hit by it
/obj/item/weapon/reagent_containers/food/drinks/bottle/New()
..()
if(isGlass) unacidable = 1
/obj/item/weapon/reagent_containers/food/drinks/bottle/proc/smash(mob/living/target as mob, mob/living/user as mob)
//Creates a shattering noise and replaces the bottle with a broken_bottle

View File

@@ -6,6 +6,7 @@
icon_state = "glass_empty"
amount_per_transfer_from_this = 5
volume = 30
unacidable = 1 //glass
center_of_mass = list("x"=16, "y"=10)
on_reagent_change()

View File

@@ -8,6 +8,7 @@
icon_state = "jar"
item_state = "beaker"
center_of_mass = list("x"=15, "y"=8)
unacidable = 1
New()
..()
reagents.add_reagent("slime", 50)

View File

@@ -14,6 +14,7 @@
volume = 60
w_class = 2
flags = OPENCONTAINER
unacidable = 1 //glass doesn't dissolve in acid
var/label_text = ""
@@ -219,6 +220,7 @@
possible_transfer_amounts = list(10,20,30,60,120)
volume = 120
flags = OPENCONTAINER
unacidable = 0
attackby(var/obj/D, mob/user as mob)
if(isprox(D))

View File

@@ -9,6 +9,7 @@
item_state = "hypo"
icon_state = "hypo"
amount_per_transfer_from_this = 5
unacidable = 1
volume = 30
possible_transfer_amounts = null
flags = OPENCONTAINER

View File

@@ -11,6 +11,7 @@
throw_speed = 2
throw_range = 10
amount_per_transfer_from_this = 10
unacidable = 1 //plastic
possible_transfer_amounts = list(5,10) //Set to null instead of list, if there is only one.
var/spray_size = 3
var/list/spray_sizes = list(1,3)

View File

@@ -18,6 +18,7 @@
w_class = 1
slot_flags = SLOT_EARS
sharp = 1
unacidable = 1 //glass
var/mode = SYRINGE_DRAW
var/image/filling //holds a reference to the current filling overlay
var/visible_name = "a syringe"