Makes photos visible on bundles

This commit is contained in:
Hubblenaut
2014-05-15 22:21:11 +02:00
parent 952d7c9e93
commit 42ab7e2b00
3 changed files with 9 additions and 1 deletions
+3 -1
View File
@@ -216,7 +216,9 @@
underlays += img
i++
else if(istype(O, /obj/item/weapon/photo))
img.icon_state = "photo"
var/obj/item/weapon/photo/Ph = O
// img.icon_state = "photo"
img = Ph.tiny
photo = 1
overlays += img
if(i>1)
+6
View File
@@ -29,6 +29,7 @@
w_class = 2.0
var/icon/img //Big photo image
var/scribble //Scribble on the back.
var/icon/tiny
/obj/item/weapon/photo/attack_self(mob/user as mob)
examine()
@@ -242,10 +243,15 @@
if(!user.get_inactive_hand())
user.put_in_inactive_hand(P)
var/icon/small_img = icon(temp)
var/icon/tiny_img = icon(temp)
var/icon/ic = icon('icons/obj/items.dmi',"photo")
var/icon/pc = icon('icons/obj/bureaucracy.dmi', "photo")
small_img.Scale(8, 8)
tiny_img.Scale(4, 4)
ic.Blend(small_img,ICON_OVERLAY, 10, 13)
pc.Blend(tiny_img,ICON_OVERLAY, 12, 19)
P.icon = ic
P.tiny = pc
P.img = temp
P.desc = mobs
P.pixel_x = rand(-10, 10)