Random maint loot and miscellaneous things (#1052)

Things done:
Created several random objects, that can be used to randomize loot in the maint or other places. Several items, some rare things and other random useful or not objects.
Added a svd gun with its own snowflakness, to replace the heister's lwap, but, they will get an extra energy gun to compesate.
Added tracksuits, stunrod, new sprite for the rapier, a new sword flavor and the old cane sword.
Changed the heister ship armory; two random melee weapons, the dragunov with an extra mag and a random energy gun.
Changed the chances of ghetto guns going bad.
Replaced the carbines in the ert area with energy pistols, so, they can make use of the holsters.
Clumsy people may have trouble with glowsticks now.
This commit is contained in:
Alberyk
2016-10-26 20:29:38 +03:00
committed by skull132
parent b5e554812b
commit 479666a47d
23 changed files with 570 additions and 98 deletions
+248
View File
@@ -440,3 +440,251 @@
type = pick(options)
return type
/obj/random/glowstick
name = "random glowstick"
desc = "This is a random glowstick."
icon = 'icons/obj/glowsticks.dmi'
icon_state = "glowstick"
/obj/random/glowstick/item_to_spawn()
return pick(/obj/item/device/flashlight/glowstick,\
/obj/item/device/flashlight/glowstick/red,\
/obj/item/device/flashlight/glowstick/blue,\
/obj/item/device/flashlight/glowstick/orange,\
/obj/item/device/flashlight/glowstick/yellow)
/obj/random/booze
name = "random alcoholic drink"
desc = "This is a random alcoholic drink."
icon = 'icons/obj/drinks.dmi'
icon_state = "broken_bottle"
/obj/random/booze/item_to_spawn()
return pick(/obj/item/weapon/reagent_containers/food/drinks/bottle/gin,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/whiskey,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/vodka,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/tequilla,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/bottleofnothing,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/rum,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/vermouth,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/kahlua,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/cognac,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/wine,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/absinthe,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/melonliquor,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/pwine,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/brandy,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/guinnes,\
/obj/item/weapon/reagent_containers/food/drinks/bottle/drambuie,\
/obj/item/weapon/reagent_containers/food/drinks/cans/beer,\
/obj/item/weapon/reagent_containers/food/drinks/cans/ale)
/obj/random/melee
name = "random melee weapon"
desc = "This is a random melee weapon."
icon = 'icons/obj/weapons.dmi'
icon_state = "baton"
/obj/random/melee/item_to_spawn()
return pick(/obj/item/weapon/melee/telebaton,\
/obj/item/weapon/melee/energy/sword,\
/obj/item/weapon/melee/energy/sword/pirate,\
/obj/item/weapon/melee/energy/glaive,\
/obj/item/weapon/melee/chainsword,\
/obj/item/weapon/melee/baton/stunrod,\
/obj/item/weapon/material/harpoon,\
/obj/item/weapon/material/scythe,\
/obj/item/weapon/material/twohanded/spear/plasteel,\
/obj/item/weapon/material/sword/trench,\
/obj/item/weapon/material/sword/rapier)
/obj/random/coin
name = "random coin"
desc = "This is a random coin."
icon = 'icons/obj/items.dmi'
icon_state = "coin"
/obj/random/coin/item_to_spawn()
var/list/coin = list("/obj/item/weapon/coin/iron" = 5,
"/obj/item/weapon/coin/silver" = 3,
"/obj/item/weapon/coin/gold" = 1,
"/obj/item/weapon/coin/silver" = 0.7,
"/obj/item/weapon/coin/phoron" = 0.5,
"obj/item/weapon/coin/uranium" = 0.5,
"/obj/item/weapon/coin/platinum" = 0.2,
"/obj/item/weapon/coin/diamond" = 0.1,
)
return pickweight(coin)
/obj/random/energy_antag
name = "random energy weapon"
desc = "This is a random energy weapon."
icon = 'icons/obj/gun.dmi'
icon_state = "retro100"
/obj/random/energy_antag/item_to_spawn()
return pick(/obj/item/weapon/gun/energy/retro,\
/obj/item/weapon/gun/energy/xray,\
/obj/item/weapon/gun/energy/gun,\
/obj/item/weapon/gun/energy/pistol,\
/obj/item/weapon/gun/energy/rifle,\
/obj/item/weapon/gun/energy/mindflayer,\
/obj/item/weapon/gun/energy/toxgun,\
/obj/item/weapon/gun/energy/vaurca/gatlinglaser,\
/obj/item/weapon/gun/energy/vaurca/blaster,\
/obj/item/weapon/gun/energy/crossbow/largecrossbow)
/obj/random/colored_jumpsuit
name = "random colored jumpsuit"
desc = "This is a random colowerd jumpsuit."
icon = 'icons/obj/clothing/uniforms.dmi'
icon_state = "black"
/obj/random/colored_jumpsuit/item_to_spawn()
return pick(/obj/item/clothing/under/color/black,\
/obj/item/clothing/under/color/blackf,\
/obj/item/clothing/under/color/blue,\
/obj/item/clothing/under/color/green,\
/obj/item/clothing/under/color/grey,\
/obj/item/clothing/under/color/orange,\
/obj/item/clothing/under/color/pink,\
/obj/item/clothing/under/color/red,\
/obj/item/clothing/under/color/white,\
/obj/item/clothing/under/color/yellow,\
/obj/item/clothing/under/lightblue,\
/obj/item/clothing/under/aqua,\
/obj/item/clothing/under/purple,\
/obj/item/clothing/under/lightpurple,\
/obj/item/clothing/under/lightgreen,\
/obj/item/clothing/under/lightbrown,\
/obj/item/clothing/under/brown,\
/obj/item/clothing/under/yellowgreen,\
/obj/item/clothing/under/darkblue,\
/obj/item/clothing/under/lightred,\
/obj/item/clothing/under/darkred)
/obj/random/loot
name = "random maintenance loot items"
desc = "Stuff for the maint-dwellers."
icon = 'icons/obj/items.dmi'
icon_state = "gift3"
/obj/random/loot/item_to_spawn()
var/list/maint = list("/obj/item/clothing/glasses/meson" = 1,
"/obj/item/clothing/glasses/meson/prescription" = 0.7,
"/obj/item/clothing/glasses/material" = 0.8,
"/obj/item/clothing/glasses/sunglasses" = 1.5,
"/obj/item/clothing/glasses/welding" = 1.2,
"/obj/item/clothing/under/captain_fly" = 0.7,
"/obj/item/clothing/under/rank/mailman" = 0.6,
"/obj/item/clothing/under/rank/vice" = 0.8,
"/obj/item/clothing/under/assistantformal" = 1,
"/obj/item/clothing/under/rainbow" = 0.9,
"/obj/item/clothing/under/overalls" = 1,
"/obj/item/clothing/under/redcoat" = 0.5,
"/obj/item/clothing/under/serviceoveralls" = 1,
"/obj/item/clothing/under/psyche" = 0.5,
"/obj/item/clothing/under/track" = 0.9,
"/obj/item/clothing/under/rank/dispatch" = 1,
"/obj/item/clothing/under/syndicate/tacticool" = 1,
"/obj/item/clothing/under/syndicate/tracksuit" = 0.2,
"/obj/item/clothing/accessory/badge" = 0.2,
"/obj/item/clothing/accessory/badge/old" = 0.2,
"/obj/item/clothing/accessory/storage/webbing" = 0.6,
"/obj/item/clothing/accessory/storage/knifeharness" = 0.3,
"/obj/item/clothing/head/collectable/petehat" = 0.3,
"/obj/item/clothing/head/hardhat" = 1.5,
"/obj/item/clothing/head/redcoat" = 0.4,
"/obj/item/clothing/head/syndicatefake" = 0.5,
"/obj/item/clothing/head/richard," = 0.3,
"/obj/item/clothing/head/soft/rainbow" = 0.7,
"/obj/item/clothing/head/plaguedoctorhat" = 0.5,
"/obj/item/clothing/head/cueball" = 0.5,
"/obj/item/clothing/head/pirate" = 0.4,
"/obj/item/clothing/head/bearpelt" = 0.4,
"/obj/item/clothing/head/witchwig" = 0.5,
"/obj/item/clothing/head/pumpkinhead" = 0.6,
"/obj/item/clothing/head/kitty" = 0.2,
"/obj/item/clothing/head/ushanka" = 0.6,
"/obj/item/clothing/head/helmet/augment" = 0.1,
"/obj/item/clothing/mask/balaclava" = 1,
"/obj/item/clothing/mask/gas" = 1.5,
"/obj/item/clothing/mask/gas/cyborg" = 0.7,
"/obj/item/clothing/mask/gas/owl_mask" = 0.8,
"/obj/item/clothing/mask/gas/syndicate" = 0.4,
"/obj/item/clothing/mask/fakemoustache" = 0.4,
"/obj/item/clothing/mask/horsehead" = 0.9,
"/obj/item/clothing/shoes/rainbow" = 1,
"/obj/item/clothing/shoes/jackboots" = 1,
"/obj/item/clothing/shoes/workboots" = 1,
"/obj/item/clothing/shoes/cyborg" = 0.4,
"/obj/item/clothing/shoes/galoshes" = 0.6,
"/obj/item/clothing/shoes/slippers_worn" = 0.7,
"/obj/item/clothing/shoes/combat" = 0.2,
"/obj/item/clothing/shoes/clown_shoes" = 0.1,
"/obj/item/clothing/suit/storage/hazardvest" = 1,
"/obj/item/clothing/suit/storage/leather_jacket/nanotrasen" = 0.7,
"/obj/item/clothing/suit/storage/toggle/tracksuit" = 0.7,
"/obj/item/clothing/suit/ianshirt" = 0.5,
"/obj/item/clothing/suit/syndicatefake" = 0.6,
"/obj/item/clothing/suit/imperium_monk" = 0.4,
"/obj/item/clothing/suit/storage/vest" = 0.2,
"/obj/item/clothing/gloves/black" = 1,
"/obj/item/clothing/gloves/fyellow" = 1.2,
"/obj/item/clothing/gloves/yellow" = 0.9,
"/obj/item/clothing/gloves/watch" = 0.8,
"/obj/item/clothing/gloves/boxing" = 0.8,
"/obj/item/clothing/gloves/boxing/green" = 0.8,
"/obj/item/clothing/gloves/botanic_leather" = 0.7,
"/obj/item/clothing/gloves/combat" = 0.2,
"/obj/item/toy/bosunwhistle" = 0.5,
"/obj/item/toy/balloon" = 0.4,
"/obj/item/weapon/haircomb" = 0.5,
"/obj/item/weapon/lipstick" = 0.6,
"/obj/item/weapon/material/knife/hook," = 0.3,
"/obj/item/weapon/material/hatchet/tacknife" = 0.4,
"/obj/item/weapon/storage/fancy/cigarettes/dromedaryco" = 1.2,
"/obj/item/weapon/storage/bag/plasticbag" = 1,
"/obj/item/weapon/extinguisher" = 1.3,
"/obj/item/weapon/extinguisher/mini" = 0.9,
"/obj/item/device/radiojammer/improvised" = 0.3,
"/obj/item/device/flashlight" = 1,
"/obj/item/device/flashlight/heavy" = 0.5,
"/obj/item/device/flashlight/maglight" = 0.4,
"/obj/item/device/flashlight/flare" = 0.5,
"/obj/item/device/flashlight/lantern" = 0.4,
"/obj/item/weapon/reagent_containers/food/drinks/teapot" = 0.4,
"/obj/item/weapon/reagent_containers/food/drinks/flask/shiny" = 0.3,
"/obj/item/weapon/reagent_containers/food/drinks/flask/lithium" = 0.3,
"/obj/item/bodybag" = 0.7,
"/obj/item/weapon/reagent_containers/spray/cleaner" = 0.6,
"/obj/item/weapon/tank/emergency_oxygen" = 0.7,
"/obj/item/weapon/tank/emergency_oxygen/double" = 0.4,
"/obj/item/clothing/mask/smokable/pipe/cobpipe" = 0.5,
"/obj/item/clothing/mask/smokable/cigarette/cigar/cohiba" = 0.7,
"/obj/item/weapon/flame/lighter" = 0.9,
"/obj/item/weapon/flame/lighter/zippo" = 0.7,
"/obj/item/device/gps/engineering" = 0.6,
"/obj/item/device/megaphone" = 0.5,
"/obj/item/device/floor_painter" = 0.6,
"/obj/random/toolbox" = 1,
"/obj/random/coin" = 1.2,
"/obj/random/tech_supply," = 1.2,
"/obj/random/powercell" = 0.8,
"/obj/random/colored_jumpsuit" = 0.7,
"/obj/random/booze" = 1.1,
"/obj/random/belt" = 0.9,
"/obj/random/contraband" = 0.9,
"/obj/random/glowstick" = 0.7,
"/obj/item/weapon/caution/cone" = 0.7,
"/obj/item/weapon/staff/broom" = 0.5,
"/obj/item/weapon/soap" = 0.4,
"/obj/item/weapon/material/wirerod" = 0.4,
"/obj/item/weapon/storage/box/donkpockets" = 0.6,
"/obj/item/weapon/contraband/poster" = 1.3,
)
return pickweight(maint)