mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 10:33:30 +01:00
Migrate /obj/effect/spawner/lootdrop to /obj/effect/spawner/random. (#27445)
* refactor: Migrate /obj/effect/spawner/lootdrop to /obj/effect/spawner/random. * set script PR number * fix broken updatepaths for three course meal * make filenames unique * goddamnit * redirect incorrect icon states * ugh * fix typepath fixes
This commit is contained in:
committed by
GitHub
parent
584e6b26d5
commit
af2a3daf22
@@ -1,26 +0,0 @@
|
||||
/obj/effect/spawner/away_lootdrop
|
||||
icon = 'icons/mob/screen_gen.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/away_lootdrop/Initialize(mapload)
|
||||
..()
|
||||
var/list/things = params2list(loot)
|
||||
|
||||
if(things && length(things))
|
||||
for(var/i = lootcount, i > 0, i--)
|
||||
if(!length(things))
|
||||
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))
|
||||
|
||||
return INITIALIZE_HINT_QDEL
|
||||
@@ -410,14 +410,14 @@ GLOBAL_LIST_EMPTY(telecomms_trap_tank)
|
||||
explosion(loc, -1, -1, 2, 4, flame_range = 4)
|
||||
qdel(src)
|
||||
|
||||
/obj/effect/spawner/lootdrop/telecomms_core_table
|
||||
/obj/effect/spawner/random/telecomms_core_table
|
||||
name = "telecomms core table spawner"
|
||||
lootcount = 1
|
||||
spawn_loot_count = 1
|
||||
loot = list(
|
||||
/obj/item/rcd/combat,
|
||||
/obj/item/gun/medbeam,
|
||||
/obj/item/gun/energy/wormhole_projector,
|
||||
/obj/item/storage/box/syndie_kit/oops_all_extraction_flares
|
||||
/obj/item/rcd/combat,
|
||||
/obj/item/gun/medbeam,
|
||||
/obj/item/gun/energy/wormhole_projector,
|
||||
/obj/item/storage/box/syndie_kit/oops_all_extraction_flares
|
||||
)
|
||||
|
||||
/obj/item/storage/box/syndie_kit/oops_all_extraction_flares
|
||||
|
||||
@@ -13,18 +13,20 @@
|
||||
/obj/item/spellbook/oneuse/emp/used
|
||||
used = TRUE //spawns used
|
||||
|
||||
/obj/effect/spawner/lootdrop/wizardcrash
|
||||
/obj/effect/spawner/random/wizardcrash
|
||||
loot = list(
|
||||
/obj/item/guardiancreator = 1, // jackpot.
|
||||
/obj/item/spellbook/oneuse/knock = 1, // tresspassing charges incoming
|
||||
/obj/item/gun/magic/wand/resurrection = 1, // medbay's best friend
|
||||
/obj/item/tarot_generator = 1, // A little bit of everything, all of the time.
|
||||
/obj/item/spellbook/oneuse/charge = 15, // and now for less useful stuff to dilute the good loot chances
|
||||
/obj/item/spellbook/oneuse/summonitem = 20,
|
||||
/obj/item/spellbook/oneuse/forcewall = 10,
|
||||
/obj/item/tarot_card_pack = 10,
|
||||
/obj/item/tarot_card_pack/jumbo = 6,
|
||||
/obj/item/tarot_card_pack/mega = 4,
|
||||
/obj/item/book/granter/spell/summon_cheese = 10, // hungry wizard stuff
|
||||
/obj/item/reagent_containers/drinks/everfull = 10 // Cheese and wine
|
||||
)
|
||||
/obj/item/spellbook/oneuse/summonitem = 20,
|
||||
/obj/item/spellbook/oneuse/charge = 15, // and now for less useful stuff to dilute the good loot chances
|
||||
/obj/item/book/granter/spell/summon_cheese = 10, // hungry wizard stuff
|
||||
/obj/item/reagent_containers/drinks/everfull = 10, // Cheese and wine
|
||||
/obj/item/spellbook/oneuse/forcewall = 10,
|
||||
/obj/item/tarot_card_pack = 10,
|
||||
|
||||
/obj/item/tarot_card_pack/jumbo = 6,
|
||||
/obj/item/tarot_card_pack/mega = 4,
|
||||
|
||||
/obj/item/guardiancreator = 1, // jackpot.
|
||||
/obj/item/spellbook/oneuse/knock = 1, // tresspassing charges incoming
|
||||
/obj/item/gun/magic/wand/resurrection = 1, // medbay's best friend
|
||||
/obj/item/tarot_generator = 1, // A little bit of everything, all of the time.
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user