Skip to content

Commit

Permalink
patches
Browse files Browse the repository at this point in the history
  • Loading branch information
MobiusWon committed Mar 2, 2024
1 parent a62b94a commit e99455d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/game/machinery/vending/cm_vending.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1275,13 +1275,19 @@ GLOBAL_LIST_INIT(cm_vending_gear_corresponding_types_list, list(
if(vend_flags & VEND_UNIFORM_RANKS)
if(insignas_override)
var/obj/item/clothing/under/underclothes = new_item

//Gives ranks to the ranked
if(istype(underclothes) && user.wear_id && user.wear_id.paygrade)
var/rankpath = get_rank_pins(user.wear_id.paygrade)
//var/falconpatch = /obj/item/clothing/accessory/patch/falcon
//underclothes.attach_accessory(user,falconpatch)
if(rankpath)
var/obj/item/clothing/accessory/ranks/rank_insignia = new rankpath()
var/obj/item/clothing/accessory/patch/uscmpatch = new(get_turf(src))
var/obj/item/clothing/accessory/patch/falcon/falconpatch = new(get_turf(src))
underclothes.attach_accessory(user, rank_insignia)

underclothes.attach_accessory(user, uscmpatch)
underclothes.attach_accessory(user, falconpatch)
if(vend_flags & VEND_UNIFORM_AUTOEQUIP)
// autoequip
if(istype(new_item, /obj/item) && new_item.flags_equip_slot != NO_FLAGS) //auto-equipping feature here
Expand Down

0 comments on commit e99455d

Please sign in to comment.