Files
Bubberstation/code/modules/requests/request.dm
Yaroslav Nurkov ec1115efff Add a few networks to fax, which send papers to request manager, and staff can answer on them from fax panel. (#71129)
## About The Pull Request

This PR adds the ability to send faxes to a central command or
syndicate, which will be delivered to the admins in request format. And
also, a fax panel for admins has been added, which will allow them to
conveniently send a fax already back (including stamps)

![image](https://user-images.githubusercontent.com/78199449/200159547-4e5f1759-2879-459c-b84f-e6dedd5f1ccb.png)

![image](https://user-images.githubusercontent.com/78199449/200159551-951e235f-e2ac-4f92-a96f-72cba643e634.png)

![image](https://user-images.githubusercontent.com/78199449/200159552-57f3dcf6-5875-4b11-af58-22c0b0fb4ae2.png)

![image](https://user-images.githubusercontent.com/78199449/200159553-57fbf90c-f141-4c12-8879-81a842afe30f.png)


## Why It's Good For The Game

More bureacracy gaming.

## Changelog

🆑 Vishenka0704
add: A way to send faxes to CentCom/Syndicate
admin: New fax panel(with stamps!!!)
/🆑

Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
2022-11-21 07:44:29 +00:00

38 lines
1.0 KiB
Plaintext

/**
* # Request
*
* A representation of an in-game request, such as a prayer.
*/
/datum/request
/// Unique ID of the request
var/id
/// Atomic ID for increment unique request IDs
var/static/atomic_id = 0
/// The type of request
var/req_type
/// The owner of the request, the player who created it
var/client/owner
/// The ckey of the owner, used for re-binding variables on login
var/owner_ckey
/// The name of the owner, in format <key>/<name>, assigned at time of request creation
var/owner_name
/// The message associated with the request
var/message
/// Just any information, which you can to send with request. For example paper datum.
var/additional_information
/// When the request was created
var/timestamp
/datum/request/New(client/requestee, type, request, additional_info)
if (!requestee)
qdel(src)
return
id = ++atomic_id
owner = requestee
owner_ckey = owner.ckey
req_type = type
message = request
additional_information = additional_info
timestamp = world.time
owner_name = key_name(requestee, FALSE)