mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Dorf work
selling plasma to centcom again changelog
This commit is contained in:
@@ -92,6 +92,7 @@ datum/controller/game_controller/proc/setup()
|
|||||||
cachedamageicons()
|
cachedamageicons()
|
||||||
//if(map && map.dorf)
|
//if(map && map.dorf)
|
||||||
//mining_surprises = typesof(/mining_surprise/dorf) - /mining_surprise/dorf
|
//mining_surprises = typesof(/mining_surprise/dorf) - /mining_surprise/dorf
|
||||||
|
//max_secret_rooms += 2
|
||||||
for(var/i=0, i<max_secret_rooms, i++)
|
for(var/i=0, i<max_secret_rooms, i++)
|
||||||
//if(map && map.dorf)
|
//if(map && map.dorf)
|
||||||
//make_dorf_secret()
|
//make_dorf_secret()
|
||||||
|
|||||||
@@ -201,6 +201,7 @@ var/global/list/datum/stack_recipe/phazon_recipes = list()
|
|||||||
desc = "Holy christ what is this?"
|
desc = "Holy christ what is this?"
|
||||||
icon_state = "sheet-phazon"
|
icon_state = "sheet-phazon"
|
||||||
item_state = "sheet-phazon"
|
item_state = "sheet-phazon"
|
||||||
|
sheettype = "phazon"
|
||||||
perunit = 1500
|
perunit = 1500
|
||||||
melt_temperature = MELTPOINT_PLASTIC
|
melt_temperature = MELTPOINT_PLASTIC
|
||||||
throwforce = 15.0
|
throwforce = 15.0
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
var/amount = 1
|
var/amount = 1
|
||||||
var/perunit = 3750
|
var/perunit = 3750
|
||||||
var/max_amount //also see stack recipes initialisation, param "max_res_amount" must be equal to this max_amount
|
var/max_amount //also see stack recipes initialisation, param "max_res_amount" must be equal to this max_amount
|
||||||
|
var/redeemed = 0 // For selling minerals to central command via supply shuttle.
|
||||||
|
|
||||||
/obj/item/stack/New(var/loc, var/amount=null)
|
/obj/item/stack/New(var/loc, var/amount=null)
|
||||||
..()
|
..()
|
||||||
|
|||||||
@@ -106,6 +106,12 @@ var/global/list/moneytypes=list(
|
|||||||
worth = 1000
|
worth = 1000
|
||||||
stack_color = "#333333"
|
stack_color = "#333333"
|
||||||
|
|
||||||
|
/obj/structure/closet/cash_closet/New()
|
||||||
|
var/list/types = typesof(/obj/item/weapon/spacecash)
|
||||||
|
for(var/i = 1 to rand(3,10))
|
||||||
|
var/typepath = pick(types)
|
||||||
|
new typepath(src)
|
||||||
|
|
||||||
/proc/dispense_cash(var/amount, var/loc)
|
/proc/dispense_cash(var/amount, var/loc)
|
||||||
for(var/cashtype in moneytypes)
|
for(var/cashtype in moneytypes)
|
||||||
var/slice = moneytypes[cashtype]
|
var/slice = moneytypes[cashtype]
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ var/list/mechtoys = list(
|
|||||||
//supply points have been replaced with MONEY MONEY MONEY - N3X
|
//supply points have been replaced with MONEY MONEY MONEY - N3X
|
||||||
var/credits_per_slip = 2
|
var/credits_per_slip = 2
|
||||||
var/credits_per_crate = 5
|
var/credits_per_crate = 5
|
||||||
var/credits_per_plasma = 0.5 // 2 plasma for 1 point
|
//var/credits_per_plasma = 0.5 // 2 plasma for 1 point
|
||||||
//control
|
//control
|
||||||
var/ordernum
|
var/ordernum
|
||||||
var/list/centcomm_orders = list()
|
var/list/centcomm_orders = list()
|
||||||
@@ -151,7 +151,7 @@ var/list/mechtoys = list(
|
|||||||
var/moving = 0
|
var/moving = 0
|
||||||
var/eta_timeofday
|
var/eta_timeofday
|
||||||
var/eta
|
var/eta
|
||||||
|
var/datum/materials/materials_list = new
|
||||||
New()
|
New()
|
||||||
ordernum = rand(1,9000)
|
ordernum = rand(1,9000)
|
||||||
|
|
||||||
@@ -266,12 +266,24 @@ var/list/mechtoys = list(
|
|||||||
for(var/atom/movable/MA in shuttle)
|
for(var/atom/movable/MA in shuttle)
|
||||||
if(MA.anchored) continue
|
if(MA.anchored) continue
|
||||||
|
|
||||||
|
if(istype(MA, /obj/item/stack/sheet/mineral/plasma))
|
||||||
|
var/obj/item/stack/sheet/mineral/plasma/P = MA
|
||||||
|
if(P.redeemed) continue
|
||||||
|
var/datum/material/mat = materials_list.getMaterial(P.sheettype)
|
||||||
|
cargo_acct.money += (mat.value * 2) * P.amount // Central Command pays double for plasma they receive that hasn't been redeemed already.
|
||||||
|
|
||||||
// Must be in a crate!
|
// Must be in a crate!
|
||||||
if(istype(MA,/obj/structure/closet/crate))
|
else if(istype(MA,/obj/structure/closet/crate))
|
||||||
cargo_acct.money += credits_per_crate
|
cargo_acct.money += credits_per_crate
|
||||||
var/find_slip = 1
|
var/find_slip = 1
|
||||||
|
|
||||||
for(var/atom/A in MA)
|
for(var/atom/A in MA)
|
||||||
|
if(istype(A, /obj/item/stack/sheet/mineral/plasma))
|
||||||
|
var/obj/item/stack/sheet/mineral/plasma/P = A
|
||||||
|
if(P.redeemed) continue
|
||||||
|
var/datum/material/mat = materials_list.getMaterial(P.sheettype)
|
||||||
|
cargo_acct.money += (mat.value * 2) * P.amount // Central Command pays double for plasma they receive that hasn't been redeemed already.
|
||||||
|
continue
|
||||||
if(find_slip && istype(A,/obj/item/weapon/paper/manifest))
|
if(find_slip && istype(A,/obj/item/weapon/paper/manifest))
|
||||||
var/obj/item/weapon/paper/slip = A
|
var/obj/item/weapon/paper/slip = A
|
||||||
if(slip.stamped && slip.stamped.len) //yes, the clown stamp will work. clown is the highest authority on the station, it makes sense
|
if(slip.stamped && slip.stamped.len) //yes, the clown stamp will work. clown is the highest authority on the station, it makes sense
|
||||||
|
|||||||
@@ -77,6 +77,7 @@
|
|||||||
if(O.material)
|
if(O.material)
|
||||||
var/datum/material/mat = materials.getMaterial(O.material)
|
var/datum/material/mat = materials.getMaterial(O.material)
|
||||||
var/obj/item/stack/sheet/M = new mat.sheettype(src)
|
var/obj/item/stack/sheet/M = new mat.sheettype(src)
|
||||||
|
M.redeemed = 1
|
||||||
//credits += mat.value // Old behavior
|
//credits += mat.value // Old behavior
|
||||||
return M
|
return M
|
||||||
return
|
return
|
||||||
@@ -157,6 +158,7 @@
|
|||||||
if(desired==0)
|
if(desired==0)
|
||||||
return 1
|
return 1
|
||||||
var/obj/item/stack/sheet/out = new mat.sheettype(output.loc)
|
var/obj/item/stack/sheet/out = new mat.sheettype(output.loc)
|
||||||
|
out.redeemed = 1 //Central command will not pay for this mineral stack.
|
||||||
out.amount = Clamp(desired, 0, min(mat.stored, out.max_amount))
|
out.amount = Clamp(desired, 0, min(mat.stored, out.max_amount))
|
||||||
mat.stored -= out.amount
|
mat.stored -= out.amount
|
||||||
updateUsrDialog()
|
updateUsrDialog()
|
||||||
|
|||||||
@@ -79,6 +79,14 @@ ADDING CREDITS? EDIT templates/header.html (or footer.html if they're for old t
|
|||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<div class="commit sansserif">
|
||||||
|
<h2 class="date">2015.02.28</h2>
|
||||||
|
<h3 class="author">Pomf123 updated:</h3>
|
||||||
|
<ul class="changes bgimages16">
|
||||||
|
<li class="tweak">Re-added the ability to sell plasma sheets to centcom via supply shuttle. They can't have been redeemed already and you get twice the value as opposed to using the Ore Redeemer on station.</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="commit sansserif">
|
<div class="commit sansserif">
|
||||||
<h2 class="date">2015.02.27</h2>
|
<h2 class="date">2015.02.27</h2>
|
||||||
<h3 class="author">Clusterfack updated:</h3>
|
<h3 class="author">Clusterfack updated:</h3>
|
||||||
|
|||||||
@@ -2424,3 +2424,8 @@ DO NOT EDIT THIS FILE BY HAND! AUTOMATICALLY GENERATED BY ss13_genchangelog.py.
|
|||||||
Pomf123:
|
Pomf123:
|
||||||
- tweak: Machine Frames can now be deanchored and moved, to deconstruct ensure its
|
- tweak: Machine Frames can now be deanchored and moved, to deconstruct ensure its
|
||||||
anchored and is empty.
|
anchored and is empty.
|
||||||
|
2015-02-28:
|
||||||
|
Pomf123:
|
||||||
|
- tweak: Re-added the ability to sell plasma sheets to centcom via supply shuttle.
|
||||||
|
They can't have been redeemed already and you get twice the value as opposed
|
||||||
|
to using the Ore Redeemer on station.
|
||||||
|
|||||||
@@ -60,8 +60,7 @@
|
|||||||
/obj/item/toy/gooncode
|
/obj/item/toy/gooncode
|
||||||
origin_tech = "materials=10;plasmatech=5;syndicate=3;programming=10;bluespace=5;power=5"
|
origin_tech = "materials=10;plasmatech=5;syndicate=3;programming=10;bluespace=5;power=5"
|
||||||
|
|
||||||
/mining_surprise/dorf
|
|
||||||
name = "Dorf!"
|
|
||||||
|
|
||||||
/mining_surprise/dorf/medbay
|
/mining_surprise/dorf/medbay
|
||||||
name= "Abandoned Medbay"
|
name= "Abandoned Medbay"
|
||||||
@@ -226,5 +225,36 @@
|
|||||||
room_size_max = 8
|
room_size_max = 8
|
||||||
flags = CONTIGUOUS_WALLS
|
flags = CONTIGUOUS_WALLS
|
||||||
|
|
||||||
|
/mining_surprise/dorf/cargo
|
||||||
|
name= "Abandoned Cache"
|
||||||
|
max_richness = 5
|
||||||
|
floortypes = list(
|
||||||
|
/turf/simulated/floor/plating/airless = 100
|
||||||
|
)
|
||||||
|
walltypes = list(
|
||||||
|
/turf/simulated/wall/r_wall = 100
|
||||||
|
)
|
||||||
|
|
||||||
|
spawntypes = list(
|
||||||
|
/obj/mecha/working/ripley/mining = 1,
|
||||||
|
/obj/item/weapon/pickaxe/jackhammer = 1,
|
||||||
|
/obj/item/weapon/pickaxe/drill/diamond = 1,
|
||||||
|
/obj/structure/closet/syndicate/resources = 2,
|
||||||
|
/obj/structure/closet/cash_closet = 3,
|
||||||
|
)
|
||||||
|
|
||||||
|
fluffitems = list(
|
||||||
|
/obj/effect/decal/cleanable/blood = 3,
|
||||||
|
/obj/effect/decal/remains/human = 1,
|
||||||
|
/obj/item/clothing/under/overalls = 1,
|
||||||
|
/obj/item/weapon/reagent_containers/food/snacks/grown/chili = 1,
|
||||||
|
/obj/item/weapon/tank/oxygen/red = 2,
|
||||||
|
/obj/item/weapon/gun/projectile/mateba = 1
|
||||||
|
)
|
||||||
|
|
||||||
|
complex_max_size=3
|
||||||
|
room_size_max=7
|
||||||
|
flags = CONTIGUOUS_WALLS
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////
|
||||||
#include "tgstation.dmm"
|
#include "tgstation.dmm"
|
||||||
|
|||||||
Reference in New Issue
Block a user