// Function from file: limb augmentation.dm public override bool success(dynamic user = null, Mob target = null, string target_zone = null, dynamic tool = null, Surgery surgery = null) { ByTable hands = null; Obj_Item_Weapon_MountedChainsaw V = null; hands = GlobalFuncs.get_both_hands(target); foreach (dynamic _a in Lang13.Enumerate(hands, typeof(Obj_Item_Weapon_MountedChainsaw))) { V = _a; GlobalFuncs.qdel(V); new Obj_Item_Weapon_Twohanded_Required_Chainsaw(GlobalFuncs.get_turf(target)); ((Ent_Static)user).visible_message("" + user + " carefully saws " + target + "'s arm free of the chainsaw.", "<span class='notice'>You remove the chainsaw.</span>"); return(true); } return(false); }
// Function from file: limb augmentation.dm public override bool success(dynamic user = null, Mob target = null, string target_zone = null, dynamic tool = null, Surgery surgery = null) { Obj_Item_Weapon_MountedChainsaw sawarms = null; if (Lang13.Bool(target.l_hand) && Lang13.Bool(target.r_hand)) { user.WriteMsg("<span class='warning'>You can't fit the chainsaw in while " + target + "'s hands are full!</span>"); return(false); } else { ((Ent_Static)user).visible_message("" + user + " finishes installing the chainsaw!", "<span class='notice'>You install the chainsaw.</span>"); ((Mob)user).unEquip(tool); GlobalFuncs.qdel(tool); sawarms = new Obj_Item_Weapon_MountedChainsaw(target); target.put_in_hands(sawarms); return(true); } }