mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 12:37:26 +01:00
Paperwork update v1: Requisition forms printable from the supply ordering console, crates contain manifests. Changelog updated.
git-svn-id: http://tgstation13.googlecode.com/svn/trunk@371 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -17,6 +17,7 @@ var/supply_shuttle_can_send = 1
|
||||
var/supply_shuttle_time = 0
|
||||
var/supply_shuttle_timeleft = 0
|
||||
var/supply_shuttle_points = 50
|
||||
var/ordernum=0
|
||||
|
||||
/area/supply/station //DO NOT TURN THE SD_LIGHTING STUFF ON FOR SHUTTLES. IT BREAKS THINGS.
|
||||
name = "supply shuttle"
|
||||
@@ -461,6 +462,9 @@ var/supply_shuttle_points = 50
|
||||
del(crate)
|
||||
supply_shuttle_points += SUPPLY_POINTSPERCRATE
|
||||
|
||||
/obj/item/weapon/paper/manifest
|
||||
name = "Supply Manifest"
|
||||
|
||||
/proc/process_supply_order()
|
||||
var/shuttleat = supply_shuttle_at_station ? SUPPLY_STATION_AREATYPE : SUPPLY_DOCK_AREATYPE
|
||||
|
||||
@@ -485,6 +489,23 @@ var/supply_shuttle_points = 50
|
||||
|
||||
var/atom/A = new SP.containertype ( pickedloc )
|
||||
A.name = "[SP.containername] [SO.comment ? "([SO.comment])":"" ]"
|
||||
|
||||
//supply manifest generation begin
|
||||
|
||||
if(ordernum)
|
||||
ordernum++
|
||||
else
|
||||
ordernum = rand(500,5000) //pick a random number to start with
|
||||
|
||||
var/obj/item/weapon/paper/manifest/slip = new /obj/item/weapon/paper/manifest (A)
|
||||
slip.info = ""
|
||||
slip.info +="<h3>[command_name()] Shipping Manifest</h3><hr><br>"
|
||||
slip.info +="Order #: [ordernum]<br>"
|
||||
slip.info +="Destination: [station_name]<br>"
|
||||
slip.info +="[supply_shuttle_shoppinglist.len] PACKAGES IN THIS SHIPMENT<br>"
|
||||
slip.info +="CONTENTS:<br><ul>"
|
||||
|
||||
//spawn the stuff, finish generating the manifest while you're at it
|
||||
if(SP.access)
|
||||
A:req_access = new/list()
|
||||
A:req_access += text2num(SP.access)
|
||||
@@ -492,6 +513,11 @@ var/supply_shuttle_points = 50
|
||||
var/thepath = text2path(B)
|
||||
var/atom/B2 = new thepath (A)
|
||||
if(SP.amount && B2:amount) B2:amount = SP.amount
|
||||
slip.info += "<li>[B2.name]</li>" //add the item to the manifest
|
||||
|
||||
//manifest finalisation
|
||||
slip.info += "</ul><br>"
|
||||
slip.info += "CHECK CONTENTS AND STAMP BELOW THE LINE TO CONFIRM RECEIPT OF GOODS<hr>"
|
||||
|
||||
return
|
||||
|
||||
@@ -553,8 +579,9 @@ var/supply_shuttle_points = 50
|
||||
for(var/S in (typesof(/datum/supply_packs) - /datum/supply_packs) )
|
||||
var/datum/supply_packs/N = new S()
|
||||
if(N.hidden) continue //Have to send the type instead of a reference to
|
||||
src.temp += "<A href='?src=\ref[src];doorder=[N.type]'>[N.name]</A> Cost: [N.cost]<BR>" //the obj because it would get caught by the garbage
|
||||
src.temp += "<BR><A href='?src=\ref[src];mainmenu=1'>OK</A>" //collector. oh well.
|
||||
src.temp += "<A href='?src=\ref[src];doorder=[N.type]'>[N.name]</A> Cost: [N.cost] " //the obj because it would get caught by the garbage
|
||||
src.temp += "<A href='?src=\ref[src];printform=[N.type]'>Print Requisition</A><br>" //collector. oh well.
|
||||
src.temp += "<BR><A href='?src=\ref[src];mainmenu=1'>OK</A>"
|
||||
|
||||
else if (href_list["doorder"])
|
||||
var/datum/supply_order/O = new/datum/supply_order ()
|
||||
@@ -566,6 +593,38 @@ var/supply_shuttle_points = 50
|
||||
src.temp = "Thanks for your request. The cargo team will process it as soon as possible.<BR>"
|
||||
src.temp += "<BR><A href='?src=\ref[src];mainmenu=1'>OK</A>"
|
||||
|
||||
else if (href_list["printform"])
|
||||
var/supplytype = href_list["printform"]
|
||||
var/datum/supply_packs/P = new supplytype ()
|
||||
var/obj/item/weapon/paper/reqform = new /obj/item/weapon/paper(src.loc)
|
||||
var/idname = "Unknown"
|
||||
var/idrank = "Unknown"
|
||||
var/reason = input(usr,"Reason:","Why do you require this item?","")
|
||||
|
||||
reqform.name = "Requisition Form - [P.name]"
|
||||
reqform.info += "<h3>[station_name] Supply Requisition Form</h3><hr>"
|
||||
|
||||
if (istype(usr:wear_id, /obj/item/weapon/card/id))
|
||||
if(usr:wear_id.registered)
|
||||
idname = usr:wear_id.registered
|
||||
if(usr:wear_id.assignment)
|
||||
idrank = usr:wear_id.assignment
|
||||
else
|
||||
idname = usr.name
|
||||
|
||||
reqform.info += "REQUESTED BY: [idname]<br>"
|
||||
reqform.info += "RANK: [idrank]<br>"
|
||||
reqform.info += "REASON: [reason]<br>"
|
||||
reqform.info += "SUPPLY CRATE TYPE: [P.name]<br>"
|
||||
reqform.info += "Contents:<br><ul>"
|
||||
|
||||
for(var/B in P.contains)
|
||||
var/thepath = text2path(B)
|
||||
var/atom/B2 = new thepath ()
|
||||
reqform.info += "<li>[B2.name]</li>"
|
||||
reqform.info += "</ul><hr>"
|
||||
reqform.info += "STAMP BELOW TO APPROVE THIS REQUISITION:<br>"
|
||||
|
||||
else if (href_list["vieworders"])
|
||||
src.temp = "Current approved orders: <BR><BR>"
|
||||
for(var/S in supply_shuttle_shoppinglist)
|
||||
|
||||
+17
-1
@@ -45,8 +45,24 @@
|
||||
|
||||
<h4>Changelog</h4>
|
||||
|
||||
<h5>Friday, November 5, 14:11</h5>
|
||||
<ul>
|
||||
<li>The ban appeals URL can now be set in config.txt</li>
|
||||
<li>Secret mode default probabilities in config.txt made sane</li>
|
||||
<li>Admin send-to-thunderdome command fixed to no longer send people to the other team's spawn.</li>
|
||||
<li>Having another disease no longer makes you immune to facehuggers.</li>
|
||||
<li>Magboots are now available from EVA.</li>
|
||||
<li>Changeling death timer shortened. Destroying the changeling's body no longer stops the death timer.</li>
|
||||
<li>Cult mode fixes.</li>
|
||||
<li>Fixed cyborgs pressing Cancel when choosing AIs.</li>
|
||||
<li>The play MIDIs setting now carries over when ghosting.</li>
|
||||
<li>Admins can now see if a cyborg is emagged via the player panel.</li>
|
||||
<li><B>PAPERWORK UPDATE v1:</B> Supply crates contain manifest slips, in a later update these will be returnable for supply points.
|
||||
<li>The Supply Ordering Console (Request computer in the QM lobby) can now print requisition forms for ordering crates. In conjunction with the rubber stamps, these can be used to demonstrate proper authorisation for supply orders.</li>
|
||||
<li>Rubber stamps now spawn for each head of staff.</li>
|
||||
</ul>
|
||||
|
||||
<h5>Thursday, November 2, 19:11(GMT)</h5>
|
||||
<h5>Tuesday, November 2, 19:11(GMT)</h5>
|
||||
<ul>
|
||||
<li>Finished work on the "cult" gamemode. I'll still add features to it later, but it is safe to be put on secret rotation now.</li>
|
||||
<li>Added an energy cutlass and made a pirate version of the space suit in preparation for a later nuke update.</li>
|
||||
|
||||
Reference in New Issue
Block a user