Merge pull request #14134 from Arturlang/Give_improvements

[READY]Give Improved
This commit is contained in:
silicons
2021-01-25 23:02:03 -07:00
committed by GitHub
4 changed files with 33 additions and 5 deletions

View File

@@ -939,6 +939,10 @@ GLOBAL_VAR_INIT(embedpocalypse, FALSE) // if true, all items will be able to emb
/obj/item/proc/get_part_rating()
return 0
//Can this item be given to people?
/obj/item/proc/can_give()
return TRUE
/obj/item/doMove(atom/destination)
if (ismob(loc))
var/mob/M = loc

View File

@@ -236,6 +236,12 @@
if(!iscyborg(loc))
deductcharge(severity*10, TRUE, FALSE)
/obj/item/melee/baton/can_give()
if(turned_on)
return FALSE
else
..()
/obj/item/melee/baton/stunsword
name = "stunsword"
desc = "Not actually sharp, this sword is functionally identical to its baton counterpart."