Cigarette Pack Functionality

Adds the ability to put cheap lighters and individual matches into
cigarette packs at the cost of cigarette slots.
- A cheap lighter takes up the space of 2 cigarettes
- Zippos won't fit, they are too boxy.
- A match takes up the space of 1 cigarette.

Increases the w_class of all lighters (cheap, zippo, and special zippos)
from 1 to 2
- Still fits in pockets, just can't shove as many into a box as they
take up more space

Adds the ability to light and put out matches on your shoes.
- Good for when you lose that matchbox (or shove matches into a cig
pack) and need a light.
- Works on all shoes, from the humble brown shoes to the devious
syndicate magboots, and even the clown shoes.

Based on the suggestion from:
http://nanotrasen.se/phpbb3/viewtopic.php?f=12&t=6880
This commit is contained in:
FalseIncarnate
2016-01-19 02:49:00 -05:00
parent ec7b2f8384
commit fca3996fcb
4 changed files with 88 additions and 10 deletions

View File

@@ -330,6 +330,21 @@ BLIND // can't see anything
"Vox" = 'icons/mob/species/vox/shoes.dmi'
)
/obj/item/clothing/shoes/attackby(obj/item/I, mob/user, params)
if(istype(I, /obj/item/weapon/match) && src.loc == user)
var/obj/item/weapon/match/M = I
if(M.lit == 0)
M.lit = 1
M.icon_state = "match_lit"
processing_objects.Add(M)
M.update_icon()
user << "<span class='notice'>You strike the [M] along your [src] to light it.</span>"
else if(M.lit == 1)
M.dropped()
user << "<span class='notice'>You crush the [M] into the bottom of your [src], extinguishing it.</span>"
return
else
..()
/obj/item/proc/negates_gravity()
return 0