Axes Some Pooling

This commit is contained in:
Fox-McCloud
2015-10-08 01:26:15 -04:00
parent 18a19df30f
commit 69d7a7ed1d
19 changed files with 66 additions and 74 deletions
@@ -18,7 +18,7 @@
var/obj/item/weapon/broken_bottle/B = new /obj/item/weapon/broken_bottle(user.loc)
user.put_in_active_hand(B)
if(prob(33))
PoolOrNew(/obj/item/weapon/shard, target.loc) // Create a glass shard at the target's location!
new /obj/item/weapon/shard(target.loc) // Create a glass shard at the target's location!
B.icon_state = src.icon_state
var/icon/I = new('icons/obj/drinks.dmi', src.icon_state)
@@ -12,7 +12,7 @@
proc/smash(mob/living/target as mob, mob/living/user as mob)
//Creates a shattering noise and replaces the drinking glass with a glass shard
user.drop_item()
var/obj/item/weapon/shard/S = PoolOrNew(/obj/item/weapon/shard, user.loc)
var/obj/item/weapon/shard/S = new /obj/item/weapon/shard(user.loc)
user.put_in_active_hand(S)
playsound(src, "shatter", 70, 1)