mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 14:08:31 +01:00
-Sending Centcom syndicate documents now gives the station a large supply point reward
This commit is contained in:
@@ -121,6 +121,7 @@ var/global/datum/controller/supply_shuttle/supply_shuttle
|
||||
var/points_per_process = 1
|
||||
var/points_per_slip = 2
|
||||
var/points_per_crate = 5
|
||||
var/points_per_intel = 100
|
||||
var/plasma_per_point = 0.2 //5 points per plasma sheet due to increased rarity
|
||||
var/centcom_message = "" // Remarks from Centcom on how well you checked the last order.
|
||||
// Unique typepaths for unusual things we've already sent CentComm, associated with their potencies
|
||||
@@ -228,6 +229,7 @@ var/global/datum/controller/supply_shuttle/supply_shuttle
|
||||
if(!shuttle) return
|
||||
|
||||
var/plasma_count = 0
|
||||
var/intel_count = 0
|
||||
var/crate_count = 0
|
||||
|
||||
centcom_message = ""
|
||||
@@ -287,6 +289,10 @@ var/global/datum/controller/supply_shuttle/supply_shuttle
|
||||
var/obj/item/stack/sheet/mineral/plasma/P = A
|
||||
plasma_count += P.amount
|
||||
|
||||
// Sell syndicate intel
|
||||
if(istype(A, /obj/item/documents/syndicate))
|
||||
intel_count += 1
|
||||
|
||||
if(istype(A, /obj/item/seeds))
|
||||
var/obj/item/seeds/S = A
|
||||
if(S.rarity == 0) // Mundane species
|
||||
@@ -306,11 +312,15 @@ var/global/datum/controller/supply_shuttle/supply_shuttle
|
||||
qdel(MA)
|
||||
|
||||
if(plasma_count)
|
||||
centcom_message += "<font color=green>+[round(plasma_count/plasma_per_point)]</font>: Received [plasma_count] units of exotic material.<BR>"
|
||||
centcom_message += "<font color=green>+[round(plasma_count/plasma_per_point)]</font>: Received [plasma_count] unit(s) of exotic material.<BR>"
|
||||
points += round(plasma_count / plasma_per_point)
|
||||
|
||||
if(intel_count)
|
||||
centcom_message += "<font color=green>+[round(intel_count*points_per_intel)]</font>: Received [intel_count] article(s) of enemy intelligence.<BR>"
|
||||
points += round(intel_count*points_per_intel)
|
||||
|
||||
if(crate_count)
|
||||
centcom_message += "<font color=green>+[round(crate_count*points_per_crate)]</font>: Received [crate_count] crates.<BR>"
|
||||
centcom_message += "<font color=green>+[round(crate_count*points_per_crate)]</font>: Received [crate_count] crate(s).<BR>"
|
||||
points += crate_count * points_per_crate
|
||||
|
||||
//Buyin
|
||||
|
||||
Reference in New Issue
Block a user