Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/tgstation/-tg-station
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordie0608 committed Jul 27, 2015
2 parents 2fe255a + c9870a0 commit 8906c49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/game/objects/items/weapons/cigs_lighters.dm
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ CIGARETTE PACKETS ARE IN FANCY.DM

/obj/item/clothing/mask/cigarette/attackby(obj/item/weapon/W, mob/user, params)
..()
if(!lit && smoketime > 0)
if(!lit && smoketime > 0 && is_hot(W))
var/lighting_text = is_lighter(W,user)
if(lighting_text)
light(lighting_text)
Expand All @@ -143,10 +143,10 @@ CIGARETTE PACKETS ARE IN FANCY.DM
var/lighting_text = null
if(istype(O, /obj/item/weapon/weldingtool))
lighting_text = "<span class='notice'>[user] casually lights the [name] with [O], what a badass.</span>"
else if(istype(O, /obj/item/weapon/lighter/greyscale)) // we have to check for this first -- zippo lighters are default
lighting_text = "<span class='notice'>After some fiddling, [user] manages to light their [name] with [O].</span>"
else if(istype(O, /obj/item/weapon/lighter))
lighting_text = "<span class='rose'>With a single flick of their wrist, [user] smoothly lights their [name] with [O]. Damn they're cool.</span>"
else if(istype(O, /obj/item/weapon/lighter/greyscale))
lighting_text = "<span class='notice'>After some fiddling, [user] manages to light their [name] with [O].</span>"
else if(istype(O, /obj/item/weapon/melee/energy))
lighting_text = "<span class='warning'>[user] swings their [O], barely missing their nose. They light their [name] in the process.</span>"
else if(istype(O, /obj/item/device/assembly/igniter))
Expand Down
1 change: 1 addition & 0 deletions code/game/objects/items/weapons/tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@
throw_speed = 3
throw_range = 5
w_class = 2

materials = list(MAT_METAL=70, MAT_GLASS=30)
origin_tech = "engineering=1"
var/welding = 0 //Whether or not the welding tool is off(0), on(1) or currently welding(2)
Expand Down

0 comments on commit 8906c49

Please sign in to comment.