Merge pull request #9514 from variableundefined/LightFIXture

Bugfix for card & lightning
This commit is contained in:
Fox McCloud
2018-09-27 17:15:38 -04:00
committed by GitHub
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -252,7 +252,7 @@
/obj/item/pack/attack_self(mob/user as mob)
user.visible_message("<span class='notice'>[name] rips open the [src]!</span>", "<span class='notice'>You rips open the [src]!</span>")
var/obj/item/cardhand/H = new()
var/obj/item/cardhand/H = new(get_turf(user))
H.cards += cards
cards.Cut()
@@ -260,7 +260,7 @@
qdel(src)
H.update_icon()
user.put_in_active_hand(H)
user.put_in_hands(H)
/obj/item/cardhand
name = "hand of cards"
@@ -370,7 +370,7 @@
var/datum/playingcard/card = pickablecards[pickedcard]
var/obj/item/cardhand/H = new(get_turf(src))
user.put_in_active_hand(H)
user.put_in_hands(H)
H.cards += card
cards -= card
H.parentdeck = parentdeck
+2 -2
View File
@@ -484,7 +484,7 @@
// create a light tube/bulb item and put it in the user's hand
var/obj/item/light/L = new light_type()
var/obj/item/light/L = new light_type(get_turf(user))
L.status = status
L.rigged = rigged
L.brightness_range = brightness_range
@@ -499,7 +499,7 @@
L.update()
L.add_fingerprint(user)
user.put_in_active_hand(L) //puts it in our active hand
user.put_in_hands(L) //puts it in our active hand
status = LIGHT_EMPTY
update()