more rng
This commit is contained in:
@@ -34,7 +34,7 @@ GLOBAL_LIST_INIT(maintenance_loot, list(
|
||||
/obj/item/clothing/head/that = 1,
|
||||
/obj/item/clothing/head/ushanka = 1,
|
||||
/obj/item/clothing/head/welding = 1,
|
||||
/obj/item/clothing/mask/gas = 15,
|
||||
/obj/effect/spawner/lootdrop/breathing_masks = 15,
|
||||
/obj/item/clothing/suit/hazardvest = 1,
|
||||
/obj/item/clothing/under/misc/vice_officer = 1,
|
||||
/obj/item/clothing/suit/hooded/flashsuit = 2,
|
||||
@@ -86,9 +86,8 @@ GLOBAL_LIST_INIT(maintenance_loot, list(
|
||||
/obj/item/screwdriver = 3,
|
||||
/obj/item/tank/internals/emergency_oxygen = 2,
|
||||
/obj/item/vending_refill/cola = 1,
|
||||
/obj/item/weldingtool = 3,
|
||||
/obj/item/wirecutters = 1,
|
||||
/obj/item/wrench = 4,
|
||||
/obj/effect/spawner/lootdrop/welder_tools = 3,
|
||||
/obj/effect/spawner/lootdrop/low_tools = 5,
|
||||
/obj/item/relic = 3,
|
||||
/obj/item/weaponcrafting/receiver = 2,
|
||||
/obj/item/clothing/head/cone = 2,
|
||||
|
||||
@@ -263,7 +263,6 @@
|
||||
LAZYSET(loot, M, our_chance)
|
||||
return ..()
|
||||
|
||||
|
||||
// Tech storage circuit board spawners
|
||||
// For these, make sure that lootcount equals the number of list items
|
||||
|
||||
@@ -521,3 +520,91 @@
|
||||
/obj/item/clothing/gloves/combat = 10,
|
||||
/obj/item/clothing/shoes/sneakers/noslip = 10
|
||||
)
|
||||
|
||||
/obj/effect/spawner/lootdrop/low_tools
|
||||
name = "random basic tool(s) spawner"
|
||||
lootcount = 1
|
||||
loot = list(
|
||||
/obj/item/screwdriver = 1,
|
||||
/obj/item/wrench = 1,
|
||||
/obj/item/weldingtool/mini = 1,
|
||||
/obj/item/crowbar = 1,
|
||||
/obj/item/wirecutters = 1,
|
||||
/obj/item/analyzer = 1,
|
||||
/obj/item/t_scanner = 1
|
||||
)
|
||||
|
||||
/obj/effect/spawner/lootdrop/high_tools
|
||||
name = "random adv tool(s) spawner"
|
||||
lootcount = 1
|
||||
loot = list(
|
||||
/obj/item/screwdriver/power = 1,
|
||||
/obj/item/weldingtool/experimental = 1,
|
||||
/obj/item/crowbar/power = 1,
|
||||
/obj/item/analyzer = 1,
|
||||
/obj/item/multitool = 1
|
||||
)
|
||||
|
||||
/obj/effect/spawner/lootdrop/welder_tools
|
||||
name = "random safe welder tool(s) spawner"
|
||||
lootcount = 1
|
||||
loot = list(
|
||||
/obj/item/weldingtool = 1,
|
||||
/obj/item/weldingtool/mini = 1,
|
||||
/obj/item/weldingtool/hugetank = 1,
|
||||
/obj/item/weldingtool/largetank = 1
|
||||
)
|
||||
|
||||
/obj/effect/spawner/lootdrop/tool_box
|
||||
name = "random safe tool box(es) spawner"
|
||||
lootcount = 1
|
||||
loot = list(
|
||||
/obj/item/storage/toolbox/mechanical = 1,
|
||||
/obj/item/storage/toolbox/mechanical/old = 1,
|
||||
/obj/item/storage/toolbox/emergency = 1,
|
||||
/obj/item/storage/toolbox/emergency/old = 1,
|
||||
/obj/item/storage/toolbox/electrical = 1,
|
||||
/obj/item/storage/toolbox/syndicate = 1,
|
||||
/obj/item/storage/toolbox/artistic = 1,
|
||||
/obj/item/storage/toolbox/gold_fake = 1,
|
||||
/obj/item/storage/toolbox/rubber = 1
|
||||
)
|
||||
|
||||
/obj/effect/spawner/lootdrop/healing_kits
|
||||
name = "random medical kit(s) spawner"
|
||||
lootcount = 1
|
||||
loot = list(
|
||||
/obj/item/storage/firstaid/regular = 1,
|
||||
/obj/item/storage/firstaid/ancient = 1,
|
||||
/obj/item/storage/firstaid/fire = 1,
|
||||
/obj/item/storage/firstaid/toxin = 1,
|
||||
/obj/item/storage/firstaid/radbgone = 1,
|
||||
/obj/item/storage/firstaid/o2 = 1,
|
||||
/obj/item/storage/firstaid/brute = 1,
|
||||
/obj/item/storage/firstaid/tactical = 1
|
||||
)
|
||||
|
||||
/obj/effect/spawner/lootdrop/breathing_tanks
|
||||
name = "random internal tank(s) spawner"
|
||||
lootcount = 1
|
||||
loot = list(
|
||||
/obj/item/tank/internals/oxygen = 1,
|
||||
/obj/item/tank/internals/oxygen/yellow = 1,
|
||||
/obj/item/tank/internals/oxygen/red = 1,
|
||||
/obj/item/tank/internals/air = 1,
|
||||
/obj/item/tank/internals/plasmaman = 1,
|
||||
/obj/item/tank/internals/plasmaman/belt = 1,
|
||||
/obj/item/tank/internals/emergency_oxygen = 1,
|
||||
/obj/item/tank/internals/emergency_oxygen/engi = 1,
|
||||
/obj/item/tank/internals/emergency_oxygen/double = 1
|
||||
)
|
||||
|
||||
/obj/effect/spawner/lootdrop/breathing_masks
|
||||
name = "random internal mask(s) spawner"
|
||||
lootcount = 1
|
||||
loot = list(
|
||||
/obj/item/clothing/mask/gas = 2,
|
||||
/obj/item/clothing/mask/gas/glass = 4,
|
||||
/obj/item/clothing/mask/breath = 5,
|
||||
/obj/item/clothing/mask/breath/medical = 1
|
||||
)
|
||||
@@ -101,11 +101,11 @@
|
||||
icon_state = "random_wallet"
|
||||
|
||||
/obj/item/storage/wallet/random/PopulateContents()
|
||||
var/item1_type = pick( /obj/item/stack/spacecash/c10, /obj/item/stack/spacecash/c100, /obj/item/stack/spacecash/c1000, /obj/item/stack/spacecash/c20, /obj/item/stack/spacecash/c200, /obj/item/stack/spacecash/c50, /obj/item/stack/spacecash/c500)
|
||||
var/item1_type = /obj/effect/spawner/lootdrop/space_cash
|
||||
var/item2_type
|
||||
if(prob(50))
|
||||
item2_type = pick( /obj/item/stack/spacecash/c10, /obj/item/stack/spacecash/c100, /obj/item/stack/spacecash/c1000, /obj/item/stack/spacecash/c20, /obj/item/stack/spacecash/c200, /obj/item/stack/spacecash/c50, /obj/item/stack/spacecash/c500)
|
||||
var/item3_type = pick( /obj/item/coin/silver, /obj/item/coin/silver, /obj/item/coin/gold, /obj/item/coin/iron, /obj/item/coin/iron, /obj/item/coin/iron )
|
||||
item2_type = /obj/effect/spawner/lootdrop/space_cash
|
||||
var/item3_type = /obj/effect/spawner/lootdrop/coin
|
||||
|
||||
spawn(2)
|
||||
if(item1_type)
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
if (prob(40))
|
||||
new /obj/item/storage/toolbox/emergency(src)
|
||||
|
||||
switch (pickweight(list("small" = 40, "aid" = 25, "tank" = 20, "both" = 10, "nothing" = 5)))
|
||||
switch (pickweight(list("small" = 35, "aid" = 25, "tank" = 20, "both" = 10, "nothing" = 5, "rng" = 5)))
|
||||
if ("small")
|
||||
new /obj/item/tank/internals/emergency_oxygen(src)
|
||||
new /obj/item/tank/internals/emergency_oxygen(src)
|
||||
@@ -49,6 +49,12 @@
|
||||
if ("nothing")
|
||||
// doot
|
||||
|
||||
if ("rng")
|
||||
new /obj/effect/spawner/lootdrop/breathing_tanks(src)
|
||||
new /obj/effect/spawner/lootdrop/breathing_tanks(src)
|
||||
new /obj/effect/spawner/lootdrop/breathing_masks(src)
|
||||
new /obj/effect/spawner/lootdrop/breathing_masks(src)
|
||||
|
||||
return
|
||||
|
||||
/*
|
||||
@@ -100,13 +106,15 @@
|
||||
if(prob(70))
|
||||
new /obj/item/wrench(src)
|
||||
if(prob(70))
|
||||
new /obj/item/weldingtool(src)
|
||||
new /obj/effect/spawner/lootdrop/welder_tools(src)
|
||||
if(prob(70))
|
||||
new /obj/item/crowbar(src)
|
||||
if(prob(70))
|
||||
new /obj/item/wirecutters(src)
|
||||
if(prob(70))
|
||||
new /obj/item/t_scanner(src)
|
||||
if(prob(70))
|
||||
new /obj/effect/spawner/lootdrop/low_tools(src) //Spare random basic tool
|
||||
if(prob(20))
|
||||
new /obj/item/storage/belt/utility(src)
|
||||
if(prob(30))
|
||||
|
||||
@@ -75,8 +75,7 @@
|
||||
new /obj/item/clothing/neck/petcollar(src)
|
||||
if(63 to 64)
|
||||
for(var/i in 1 to rand(4, 7))
|
||||
var/newcoin = pick(/obj/item/coin/silver, /obj/item/coin/silver, /obj/item/coin/silver, /obj/item/coin/iron, /obj/item/coin/iron, /obj/item/coin/iron, /obj/item/coin/gold, /obj/item/coin/diamond, /obj/item/coin/plasma, /obj/item/coin/uranium)
|
||||
new newcoin(src)
|
||||
new /obj/effect/spawner/lootdrop/coin(src)
|
||||
if(65 to 66)
|
||||
new /obj/item/clothing/suit/ianshirt(src)
|
||||
new /obj/item/clothing/suit/hooded/ian_costume(src)
|
||||
|
||||
@@ -200,8 +200,7 @@ Regenerative extracts:
|
||||
colour = "gold"
|
||||
|
||||
/obj/item/slimecross/regenerative/gold/core_effect(mob/living/target, mob/user)
|
||||
var/newcoin = pick(/obj/item/coin/silver, /obj/item/coin/iron, /obj/item/coin/gold, /obj/item/coin/diamond, /obj/item/coin/plasma, /obj/item/coin/uranium)
|
||||
var/obj/item/coin/C = new newcoin(target.loc)
|
||||
var/obj/item/coin/C = new /obj/effect/spawner/lootdrop/coin(target.loc)
|
||||
playsound(C, 'sound/items/coinflip.ogg', 50, 1)
|
||||
target.put_in_hand(C)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user