* progress * Compile errors fixed No idea if it's test worthy tho as conflicts with race overhaul and narky removal. * Update admins.txt * efforts continue Fuck grab code, seriously * grab code is cancer * Execute the Narkism Do not hesitate. Show no mercy. * holy shit grab code is awful * have I bitched about grab code My bitching, let me show you it * código de agarre es una mierda No really it is * yeah I don't even know anymore. * Lolnope. Fuck grab code * I'm not even sure what to fix anymore * Self eating is not an acceptable fate * Taste the void, son. * My code doesn't pass it's own sanity check. Maybe it's a sign of things to come. * uncommented and notes * It Works and I Don't Know Why (#38) * shuttle auto call * it works and I don't know why
34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
// Micro Holders - Extends /obj/item/weapon/holder
|
|
|
|
/obj/item/weapon/holder/micro
|
|
name = "micro"
|
|
desc = "Another crewmember, small enough to fit in your hand."
|
|
icon_state = "micro"
|
|
slot_flags = SLOT_FEET | SLOT_HEAD | SLOT_ID
|
|
w_class = 2
|
|
item_icons = null // Override value from parent. We don't have magic sprites.
|
|
pixel_y = 0 // Override value from parent.
|
|
|
|
/obj/item/weapon/holder/micro/examine(var/mob/user)
|
|
for(var/mob/living/M in contents)
|
|
M.examine(user)
|
|
|
|
/obj/item/weapon/holder/MouseDrop(mob/M as mob)
|
|
..()
|
|
if(M != usr) return
|
|
if(usr == src) return
|
|
if(!Adjacent(usr)) return
|
|
if(istype(M,/mob/living/silicon/ai)) return
|
|
for(var/mob/living/carbon/human/O in contents)
|
|
O.show_inv(usr)
|
|
|
|
/obj/item/weapon/holder/micro/attack_self(var/mob/living/user)
|
|
for(var/mob/living/carbon/human/M in contents)
|
|
M.help_shake_act(user)
|
|
|
|
/obj/item/weapon/holder/micro/update_state()
|
|
// If any items have been dropped by contained mob, drop them to floor.
|
|
for(var/obj/O in contents)
|
|
O.forceMove(get_turf(src))
|
|
..()
|