Compilation fix.

This commit is contained in:
PsiOmega
2015-08-15 11:12:43 +02:00
parent c81ad0964e
commit 4cf736bb5c

View File

@@ -9,7 +9,7 @@
force = 5
var/smash_duration = 5 //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
var/obj/item/weapon/reagent_containers/glass/rag/rag = null
var/rag_underlay = "rag"
@@ -17,7 +17,6 @@
..()
if(isGlass) unacidable = 1
/obj/item/weapon/reagent_containers/food/drinks/bottle/proc/smash(mob/living/target as mob, mob/living/user as mob)
/obj/item/weapon/reagent_containers/food/drinks/bottle/Destroy()
if(rag)
rag.forceMove(src.loc)
@@ -132,7 +131,7 @@
//Calculating duration and calculating damage.
armor_block = target.run_armor_check(affecting, "melee")
//force will counteract armour, but will never increase duration
armor_duration = smash_duration + min(0, force - target.getarmor(affecting, "melee") + 10)