Adds linting for equipped() pickup() dropped() (#46614)

* lint some inventory procs

* lineends

* f

*  line end

* lineend

* fuck

* changes per review
This commit is contained in:
spookydonut
2019-09-25 17:31:29 +08:00
committed by Rob Bailey
parent e30b68a01e
commit 210ba5c571
19 changed files with 34 additions and 14 deletions

View File

@@ -53,6 +53,7 @@
..()
/obj/item/minigunpack/dropped(mob/user)
. = ..()
if(armed)
user.dropItemToGround(gun, TRUE)
@@ -126,6 +127,7 @@
return
/obj/item/gun/ballistic/minigun/dropped(mob/user)
SHOULD_CALL_PARENT(FALSE)
if(ammo_pack)
ammo_pack.attach_gun(user)
else
@@ -143,6 +145,3 @@
if(!ammo_pack || ammo_pack.loc != user)
to_chat(user, "<span class='warning'>You need the backpack power source to fire the gun!</span>")
. = ..()
/obj/item/gun/ballistic/minigun/dropped(mob/living/user)
ammo_pack.attach_gun(user)

View File

@@ -86,6 +86,7 @@
icon_state = "flatgun"
/obj/item/gun/ballistic/automatic/pistol/stickman/pickup(mob/living/user)
SHOULD_CALL_PARENT(FALSE)
to_chat(user, "<span class='notice'>As you try to pick up [src], it slips out of your grip..</span>")
if(prob(50))
to_chat(user, "<span class='notice'>..and vanishes from your vision! Where the hell did it go?</span>")