Add Variety of Food secondary goal, small tweaks. (#25173)

* Add Variety of Food secondary goal, small tweaks.

* oops

* Apply suggestions from code review

Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

* No slasher movies, please.

* No prions for CC, please.

* Update code/modules/station_goals/secondary/botany/kudzu_goal.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
Signed-off-by: Charlie Nolan <funnyman3595@gmail.com>

* Update code/modules/station_goals/secondary/kitchen/variety_food.dm

Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
Signed-off-by: Charlie Nolan <funnyman3595@gmail.com>

* Update variety_food.dm

---------

Signed-off-by: Charlie Nolan <funnyman3595@gmail.com>
Co-authored-by: FunnyMan3595 (Charlie Nolan) <funnyman@google.com>
Co-authored-by: GDN <96800819+GDNgit@users.noreply.github.com>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: Henri215 <77684085+Henri215@users.noreply.github.com>
This commit is contained in:
Charlie Nolan
2024-05-17 05:49:32 -07:00
committed by GitHub
parent a57169eb2e
commit da0843e96d
25 changed files with 252 additions and 36 deletions
+18
View File
@@ -294,6 +294,7 @@
var/msg = "<center>---[station_time_timestamp()]---</center><br>"
var/list/credit_changes = list()
var/list/department_messages = list()
for(var/datum/economy/line_item/item in manifest.line_items)
if(!credit_changes[item.account])
credit_changes[item.account] = 0
@@ -306,6 +307,13 @@
else
msg += "<span class='bad'>[item.account.account_name] [item.credits]</span>: [item.reason]<br>"
if(item.requests_console_department)
if(!department_messages[item.requests_console_department])
department_messages[item.requests_console_department] = list()
if(!department_messages[item.requests_console_department][item.reason])
department_messages[item.requests_console_department][item.reason] = 0
department_messages[item.requests_console_department][item.reason]++
for(var/datum/money_account/account in credit_changes)
if(account.account_type == ACCOUNT_TYPE_DEPARTMENT)
SSblackbox.record_feedback("tally", "cargo profits", credit_changes[account], "[account.account_name]")
@@ -317,6 +325,15 @@
else
GLOB.station_money_database.charge_account(account, -credit_changes[account], "Supply Shuttle Fine", "Central Command Supply Master", allow_overdraft = TRUE, supress_log = FALSE)
for(var/department in department_messages)
var/list/rc_message = list()
for(var/message_piece in department_messages[department])
var/count = ""
if(department_messages[department][message_piece] > 1)
count = " (x[department_messages[department][message_piece]])"
rc_message += "[message_piece][count]"
send_requests_console_message(rc_message, "Central Command", department, "Stamped with the Central Command rubber stamp.", "Verified by the Central Command receiving department.", RQ_NORMALPRIORITY)
SSeconomy.centcom_message += "[msg]<hr>"
manifest = new
@@ -802,6 +819,7 @@
/datum/economy/line_item
var/datum/money_account/account
var/requests_console_department
var/credits
var/reason
var/zero_is_good = FALSE