mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Axes Some Pooling
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user