mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 03:27:05 +01:00
Add syndicate stamp
This commit is contained in:
@@ -430,36 +430,12 @@
|
||||
if((!in_range(src, usr) && loc != user && !( istype(loc, /obj/item/weapon/clipboard) ) && loc.loc != user && user.get_active_hand() != P))
|
||||
return
|
||||
|
||||
//stamps += (stamps=="" ? "<HR>" : "<BR>") + "<i>This paper has been stamped with the [P.name].</i>"
|
||||
stamps += (stamps=="" ? "<HR>" : "") + "<img src=large_[P.icon_state].png>"
|
||||
|
||||
var/image/stampoverlay = image('icons/obj/bureaucracy.dmi')
|
||||
var/{x; y;}
|
||||
if(istype(P, /obj/item/weapon/stamp/captain) || istype(P, /obj/item/weapon/stamp/centcom))
|
||||
x = rand(-2, 0)
|
||||
y = rand(-1, 2)
|
||||
else
|
||||
x = rand(-2, 2)
|
||||
y = rand(-3, 2)
|
||||
offset_x += x
|
||||
offset_y += y
|
||||
stampoverlay.pixel_x = x
|
||||
stampoverlay.pixel_y = y
|
||||
|
||||
if(istype(P, /obj/item/weapon/stamp/clown))
|
||||
if(!clown)
|
||||
user << "<span class='notice'>You are totally unable to use the stamp. HONK!</span>"
|
||||
return
|
||||
|
||||
if(!ico)
|
||||
ico = new
|
||||
ico += "paper_[P.icon_state]"
|
||||
stampoverlay.icon_state = "paper_[P.icon_state]"
|
||||
|
||||
if(!stamped)
|
||||
stamped = new
|
||||
stamped += P.type
|
||||
overlays += stampoverlay
|
||||
stamp(P)
|
||||
|
||||
user << "<span class='notice'>You stamp the paper with your rubber stamp.</span>"
|
||||
|
||||
@@ -468,6 +444,32 @@
|
||||
|
||||
add_fingerprint(user)
|
||||
return
|
||||
|
||||
/obj/item/weapon/paper/proc/stamp(var/obj/item/weapon/stamp/S)
|
||||
stamps += (!stamps || stamps == "" ? "<HR>" : "") + "<img src=large_[S.icon_state].png>"
|
||||
|
||||
var/image/stampoverlay = image('icons/obj/bureaucracy.dmi')
|
||||
var/{x; y;}
|
||||
if(istype(S, /obj/item/weapon/stamp/captain) || istype(S, /obj/item/weapon/stamp/centcom))
|
||||
x = rand(-2, 0)
|
||||
y = rand(-1, 2)
|
||||
else
|
||||
x = rand(-2, 2)
|
||||
y = rand(-3, 2)
|
||||
offset_x += x
|
||||
offset_y += y
|
||||
stampoverlay.pixel_x = x
|
||||
stampoverlay.pixel_y = y
|
||||
|
||||
if(!ico)
|
||||
ico = new
|
||||
ico += "paper_[S.icon_state]"
|
||||
stampoverlay.icon_state = "paper_[S.icon_state]"
|
||||
|
||||
if(!stamped)
|
||||
stamped = new
|
||||
stamped += S.type
|
||||
overlays += stampoverlay
|
||||
|
||||
/*
|
||||
* Premade paper
|
||||
|
||||
@@ -75,7 +75,12 @@
|
||||
/obj/item/weapon/stamp/centcom
|
||||
name = "Nanotrasen Representative's rubber stamp"
|
||||
icon_state = "stamp-cent"
|
||||
_color = "internalaffairs"
|
||||
_color = "centcom"
|
||||
|
||||
/obj/item/weapon/stamp/syndicate
|
||||
name = "suspicious rubber stamp"
|
||||
icon_state = "stamp-syndicate"
|
||||
_color = "syndicate"
|
||||
|
||||
// Syndicate stamp to forge documents.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user