// Function from file: glass.dm public override dynamic attackby(dynamic A = null, dynamic user = null, string _params = null, bool?silent = null, bool?replace_spent = null) { dynamic WT = null; Obj_Item_Stack_Sheet_Glass NG = null; Obj_Item_Stack_Sheet_Glass G = null; if (A is Obj_Item_Weapon_Weldingtool) { WT = A; if (((Obj_Item_Weapon_Weldingtool)WT).remove_fuel(0, user)) { NG = new Obj_Item_Stack_Sheet_Glass(user.loc); foreach (dynamic _a in Lang13.Enumerate(user.loc, typeof(Obj_Item_Stack_Sheet_Glass))) { G = _a; if (G == NG) { continue; } if ((G.amount ?? 0) >= (G.max_amount ?? 0)) { continue; } G.attackby(NG, user); } user.WriteMsg(new Txt("<span class='notice'>You add the newly-formed glass to the stack. It now contains ").item(NG.amount).str(" sheet").s().str(".</span>").ToString()); GlobalFuncs.qdel(this); } } base.attackby((object)(A), (object)(user), _params, silent, replace_spent); return(null); }