mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Fixes stacks, attempt 2 (#26633)
* this is hell pain * fixes merge issues when cutting up various items * adds early return to attackby
This commit is contained in:
@@ -66,16 +66,8 @@
|
||||
. = TRUE
|
||||
if(!I.use_tool(src, user, volume = I.tool_volume))
|
||||
return
|
||||
var/obj/item/stack/sheet/NG = new welded_type(user.loc)
|
||||
for(var/obj/item/stack/sheet/G in user.loc)
|
||||
if(!istype(G, welded_type))
|
||||
continue
|
||||
if(G == NG)
|
||||
continue
|
||||
if(G.amount >= G.max_amount)
|
||||
continue
|
||||
G.attackby(NG, user)
|
||||
to_chat(user, "<span class='notice'>You add the newly-formed glass to the stack. It now contains [NG.amount] sheet\s.</span>")
|
||||
var/obj/item/stack/sheet/new_glass = new welded_type(user.loc)
|
||||
to_chat(user, "<span class='notice'>You add the newly-formed glass to the stack.</span>")
|
||||
qdel(src)
|
||||
|
||||
/obj/item/shard/Crossed(mob/living/L, oldloc)
|
||||
|
||||
Reference in New Issue
Block a user