mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
* :( * Ports https://github.com/PolarisSS13/Polaris/pull/2571 early. Need this for a map I wanna do. * need sleep * Emergency meds added Resolves https://github.com/VOREStation/VOREStation/issues/600 * Fixes Fax Machine showing Sif Government * Updates Tajaran lore to match Polaris. * Sleeping for tonight * Fixes #623 * Added more to the map * Fox sprites from Paradise added * Vore bee added * Technical stuff no one cares about. * Another update * Reverts Pull #508 https://github.com/VOREStation/VOREStation/pull/508 messed up digesting dead mobs and mice. * Sergaling are now Saru. * Saru * Zoo map update, near completion * Zoo map finished, plus Station Vault updated * Revert "Ports https://github.com/PolarisSS13/Polaris/pull/2571 early." This reverts commit 59e2bb211759604a95319ce6b1c74219a4b60800. * Buzz off, Travis. * Removed microwaves entirely so Travis stops bitching * Travis stop being dumb * Fix the zoo map once and for all..? * Removes backup files.
24 lines
660 B
Plaintext
24 lines
660 B
Plaintext
/obj/effect/spawner/lootdrop
|
|
icon = 'icons/mob/screen1.dmi'
|
|
icon_state = "x2"
|
|
var/lootcount = 1 //how many items will be spawned
|
|
var/lootdoubles = 0 //if the same item can be spawned twice
|
|
var/loot = "" //a list of possible items to spawn- a string of paths
|
|
|
|
/obj/effect/spawner/lootdrop/initialize()
|
|
var/list/things = params2list(loot)
|
|
|
|
if(things && things.len)
|
|
for(var/i = lootcount, i > 0, i--)
|
|
if(!things.len)
|
|
return
|
|
|
|
var/loot_spawn = pick(things)
|
|
var/loot_path = text2path(loot_spawn)
|
|
|
|
if(!loot_path || !lootdoubles)
|
|
things.Remove(loot_spawn)
|
|
continue
|
|
|
|
new loot_path(get_turf(src))
|
|
qdel(src) |