Skip to content

Commit

Permalink
More of all sorts of things
Browse files Browse the repository at this point in the history
  • Loading branch information
i1yadobr committed Sep 25, 2024
1 parent 5932bbf commit a2b336a
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 9 deletions.
2 changes: 2 additions & 0 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,8 @@
'html/images/stamp_images/stamp-cargo.png',
'html/images/stamp_images/stamp-intaff.png',
'html/images/stamp_images/stamp-ward.png',
'html/images/stamp_images/stamp-ntd.png',
'html/images/stamp_images/stamp-merchant.png',
'html/search.js',
'html/panels.css',
'html/spacemag.css',
Expand Down
22 changes: 14 additions & 8 deletions code/modules/paperwork/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@
"Скафандры и иное оборудование, предназначенное для проведения работ в открытом космосе" = 50,\
"Антиквариат" = 50,\
"Домашние питомцы" = 50,\
"Мелкокалиберное огнестрельное или слабое энергетическое оружие" = 5,\
"Крупнокалиберное огнестрельное или мощное энергетическое оружие" = 0.1,\
"Взрывчатые или сильногорючие вещества, гранаты, в том числе нестандартного действия" = 0.1)
"Мелкокалиберное огнестрельное или слабое энергетическое оружие" = 10,\
"Крупнокалиберное огнестрельное или мощное энергетическое оружие" = 1,\
"Взрывчатые или сильногорючие вещества, гранаты, в том числе нестандартного действия" = 1)


/obj/item/paper/trade_lic/Initialize()
Expand All @@ -165,6 +165,7 @@
var/date = list("day" = rand(1,30), "month" = rand(1,12), "year" = rand(2564,2566), "dur" = rand(3,5))
var/nt_code = "[rand(100,999)]-[rand(100,999)]-[rand(100,999)]"
var/org_code = "[rand(100,999)]-[rand(10,999)]-[rand(100,999)]"
var/nt_agent = "[pick(GLOB.first_names_female)] [pick(GLOB.last_names)]"
if(GLOB.merchant_illegalness)
var/mistake = pick(possible_mis)
switch(mistake)
Expand All @@ -179,10 +180,13 @@
if("department")
department = pick(fake_departaments)

stamps += "<br><i>This paper has been stamped with the [department] stamp.</i>"
stamps += "<br><i>This paper has been stamped with the [org_name] stamp.</i>"

info = ""
info += "\[center]\[large]\[b]Разрешение на торговлю\[/b]\[/large]\[/center]"
info += "\[center]\[large]\[bluelogo]\[/large]\[/center]"
info += "\[small]Выдана агентом [pick(GLOB.first_names_female)] [pick(GLOB.last_names)] от лица [department]"
info += "\[small]Выдана агентом [nt_agent] от лица [department]"
info += "\[br]Код агента: [nt_code]\[br] Код организации: [org_code]"
info += "\[br]Дата выдачи: [date["day"]].[date["month"]].[date["year"]]\[br] Срок действия: [date["dur"]] года\[/small]"
info += "\[hr]"
Expand All @@ -193,10 +197,12 @@
for(var/tr_cat in trade_category)
if(prob(trade_category[tr_cat]))
info += "\[item]\[b][tr_cat]\[/b]\[/item]"
info += "\[/list]"
info += "\[i]This paper has been stamped with the [department] stamp.\[/i]"
info += "\[br]\[i]This paper has been stamped with the [org_name] stamp.\[/i]"
info += "\[/small]"
info += "\[/list]\[/small]"
info += "\[hr]"
info += "\[br]\[b]Подпись Агента:\[/b]\[i] [nt_agent] \[/i]"
info += "\[br]Место для печатей:"
stamps_images += "<br><img src = stamp-ntd.png>"
stamps_images += "<br><img src = stamp-merchant.png>"
. = ..()

/obj/item/paper/trade_lic/trade_guide
Expand Down
12 changes: 11 additions & 1 deletion code/modules/paperwork/stamps.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
desc = "A rubber stamp for stamping important documents."
icon = 'icons/obj/bureaucracy.dmi'
icon_state = "stamp-qm"
item_state = "stamp"
item_state = "stamp-qm"
throwforce = 0
w_class = ITEM_SIZE_TINY
throw_range = 15
Expand Down Expand Up @@ -105,6 +105,16 @@
icon_state = "stamp-chap"
item_state = "stamp-chap"

/obj/item/stamp/merchant
name = "merchant rubber stamp"
icon_state = "stamp-merchant"
item_state = "stamp-merchant"

/obj/item/stamp/ntd
name = "nanotrasen trading department rubber stamp"
icon_state = "stamp-ntd"
item_state = "stamp-ntd"

// Syndicate stamp to forge documents.
/obj/item/stamp/chameleon/attack_self(mob/user as mob)

Expand Down
Binary file added html/images/stamp_images/stamp-merchant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added html/images/stamp_images/stamp-ntd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icons/mob/onmob/items/lefthand.dmi
Binary file not shown.
Binary file modified icons/mob/onmob/items/righthand.dmi
Binary file not shown.
Binary file modified icons/obj/bureaucracy.dmi
Binary file not shown.

0 comments on commit a2b336a

Please sign in to comment.