Skip to content

Commit

Permalink
One star tech loot fix (#8552)
Browse files Browse the repository at this point in the history
* loot loot loot

goblin brain activate

* changes

---------

Co-authored-by: Wrill <[email protected]>
  • Loading branch information
VmpOS2NHSkhkejA9 and Wrill authored Feb 14, 2025
1 parent d10f6ad commit 5fdac5f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
3 changes: 2 additions & 1 deletion code/__DEFINES/spawner/_spawner.dm
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,11 @@

// ITEM - STOCK PARTS and os_tech
#define SPAWN_STOCK_PARTS "stock_parts"
#define SPAWN_STOCK_PARTS_OS "stock_parts_os"

#define SPAWN_TAG_STOCK_PARTS SPAWN_TAG_ITEM+";"+SPAWN_STOCK_PARTS
#define SPAWN_TAG_STOCK_PARTS_TIER_2 SPAWN_TAG_STOCK_PARTS+";"+SPAWN_SCIENCE
#define SPAWN_TAG_STOCK_PARTS_OS SPAWN_TAG_STOCK_PARTS+";"+SPAWN_TAG_TECH_OS+";stock_parts_os"
#define SPAWN_TAG_STOCK_PARTS_OS SPAWN_TAG_STOCK_PARTS+";"+SPAWN_TAG_TECH_OS+";"+SPAWN_STOCK_PARTS_OS

// ITEM - device
#define SPAWN_DEVICE "device"
Expand Down
11 changes: 8 additions & 3 deletions code/game/objects/random/packs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,18 @@ They generally give more random result and can provide more divercity in spawn.
icon_state = "tool-red-low"
spawn_nothing_percentage = 70


/obj/spawner/pack/tech_loot/onestar
name = "Random technical One Star loot"
icon_state = "tool-red"
desc = "This is a random technical loot."
allow_blacklist = TRUE
tags_to_spawn = list(SPAWN_TECH_OS)

/obj/spawner/pack/tech_loot/onestar/item_to_spawn()
return pickweight(list(
/obj/spawner/tool_upgrade/rare/onestar = 10,
/obj/spawner/tool/advanced/onestar = 5,
/obj/spawner/techpart/onestar = 10
))


//This will be spawned in rare closets
/obj/spawner/pack/gun_loot
Expand Down
6 changes: 6 additions & 0 deletions code/game/objects/random/techparts.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,9 @@
name = "low chance random techpart"
icon_state = "tech-orange-low"
spawn_nothing_percentage = 60

/obj/spawner/techpart/onestar
name = "random onestar techpart"
icon_state = "tech-orange"
allow_blacklist = TRUE
tags_to_spawn = list(SPAWN_STOCK_PARTS_OS)

0 comments on commit 5fdac5f

Please sign in to comment.