mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-30 15:38:02 +01:00
Simple mob port [IDB IGNORE] (#18236)
* first adjustements * few more * construct * next * next set * next * next * next * next * next * . * last non modular set * make it compile * . * . * change that * synx * teamush * override fix * TEAMUSH * adds organ sell element * adds pick color * get rid of these chompcomments * removes chomp comments * Update gaslamp_vr.dm * zipgun * zip and synx * fixes synx * Update topic.dm * move the trash verbs * . * . * . * port * Update rakshasa_trap.dm * Update slug.dm --------- Co-authored-by: C.L. <killer65311@gmail.com> Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
This commit is contained in:
@@ -243,3 +243,57 @@
|
||||
/obj/item/mecha_parts/mecha_equipment/repair_droid,
|
||||
/obj/item/mecha_parts/mecha_equipment/teleporter
|
||||
)
|
||||
|
||||
// Stuff you may find attached to a mouse tank.
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/datum/element/lootable/mecha/mouse_tank
|
||||
loot_left= 5
|
||||
|
||||
common_loot = list(
|
||||
/obj/random/tool,
|
||||
/obj/random/tool,
|
||||
/obj/item/stack/cable_coil/random,
|
||||
/obj/random/tank,
|
||||
/obj/random/tech_supply/component,
|
||||
/obj/random/tech_supply/component,
|
||||
/obj/effect/decal/remains/mouse,
|
||||
/obj/item/stack/material/steel{amount = 20}
|
||||
)
|
||||
|
||||
uncommon_loot = list(
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/ballistic/lmg/rigged,
|
||||
/obj/item/mecha_parts/mecha_equipment/generator
|
||||
)
|
||||
|
||||
rare_loot = list(
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/ballistic/lmg,
|
||||
/obj/item/mecha_parts/mecha_equipment/generator/nuclear
|
||||
)
|
||||
|
||||
// Stuff you may find attached to a livewire mouse tank.
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/datum/element/lootable/mecha/mouse_tank/livewire
|
||||
|
||||
uncommon_loot = list(
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/flamer/rigged,
|
||||
/obj/item/mecha_parts/mecha_equipment/tool/extinguisher
|
||||
)
|
||||
|
||||
rare_loot = list(
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/energy/flamer,
|
||||
/obj/item/mecha_parts/mecha_equipment/generator
|
||||
)
|
||||
|
||||
// Stuff you may find attached to a eraticator mouse tank.
|
||||
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
/datum/element/lootable/mecha/mouse_tank/eraticator
|
||||
|
||||
uncommon_loot = list(
|
||||
/obj/item/ammo_magazine/m75,
|
||||
/obj/item/mecha_parts/mecha_equipment/weapon/ballistic/mortar
|
||||
)
|
||||
|
||||
rare_loot = list(
|
||||
/obj/item/gun/projectile/gyropistol,
|
||||
/obj/item/mecha_parts/mecha_equipment/generator/nuclear
|
||||
)
|
||||
|
||||
@@ -172,3 +172,22 @@
|
||||
else
|
||||
GLOB.refined_chems_sold[R.industrial_use]["units"] += FLOOR(R.volume, 1)
|
||||
GLOB.refined_chems_sold[R.industrial_use]["value"] += reagent_value
|
||||
|
||||
/datum/element/sellable/salvage //For selling /obj/item/salvage
|
||||
|
||||
/datum/element/sellable/salvage/calculate_sell_value(obj/source)
|
||||
var/obj/item/salvage/salvagedStuff = source
|
||||
return salvagedStuff.worth
|
||||
|
||||
/datum/element/sellable/organ //For selling /obj/item/organ/internal
|
||||
/datum/element/sellable/organ/calculate_sell_value(obj/source)
|
||||
var/obj/item/organ/internal/organ_stuff = source
|
||||
return organ_stuff.supply_conversion_value
|
||||
|
||||
/datum/element/sellable/organ/sell_error(obj/source)
|
||||
if(!istype(source.loc, /obj/structure/closet/crate/freezer))
|
||||
return "Error: Product was improperly packaged. Send contents in freezer crate to preserve contents for transport."
|
||||
var/obj/item/organ/internal/organ_stuff = source
|
||||
if(organ_stuff.health != initial(organ_stuff.health) )
|
||||
return "Error: Product was damaged on arrival."
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user