Skip to content

Commit

Permalink
Changes to Donator Kits and custom_items.txt (#7306)
Browse files Browse the repository at this point in the history
# About the pull request

Changes the config/custom_items.txt to fill the donator kit of each
donator kit having its own typepath

# Explain why it's good for the game

Being able to grab the donator kit instead of spawning with it makes
inventories not be full of gear right out of spawning
Also just better code in general

# Changelog

:cl:
add: Adds the personal gear vendor, where people can get their donator
items or a random loadout item
add: Custom Items can be gotten from Requisitions instead of spawning
with them
config: Changes to config/custom_items.txt
/:cl:
  • Loading branch information
BeagleGaming1 authored Nov 15, 2024
1 parent 2050e84 commit fdefc0d
Show file tree
Hide file tree
Showing 8 changed files with 180 additions and 628 deletions.
7 changes: 5 additions & 2 deletions code/controllers/subsystem/ticker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,8 @@ SUBSYSTEM_DEF(ticker)
var/mob/M = J.spawn_in_player(player)
if(istype(M))
J.equip_job(M)
EquipCustomItems(M)
if(player.ckey in GLOB.donator_items)
to_chat(player, SPAN_BOLDNOTICE("You have gear available in the personal gear vendor near Requisitions."))

if(M.client)
var/client/C = M.client
Expand Down Expand Up @@ -455,7 +456,9 @@ SUBSYSTEM_DEF(ticker)
captainless = FALSE
if(player.job)
GLOB.RoleAuthority.equip_role(player, GLOB.RoleAuthority.roles_by_name[player.job], late_join = FALSE)
EquipCustomItems(player)
if(player.ckey in GLOB.donator_items)
to_chat(player, SPAN_BOLDNOTICE("You have gear available in the personal gear vendor near Requisitions."))

if(player.client)
var/client/C = player.client
if(C.player_data && C.player_data.playtime_loaded && length(C.player_data.playtimes) == 0)
Expand Down
Loading

0 comments on commit fdefc0d

Please sign in to comment.