Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
Gristlebee committed Jan 27, 2025
1 parent 4824895 commit d1a39f8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions code/modules/projectiles/gun.dm
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,6 @@
*/
///The types of attachments allowed, a list of types. SUBTYPES OF AN ALLOWED TYPE ARE ALSO ALLOWED.
var/list/valid_attachments = list()
///The types of attachments allowed for this type of gun. Eg. Pistols/Rifles/Shotguns/etc.
var/list/weapon_class_attachments = list()
///The types of attachments that are unique to this gun. Adds it to the base valid_attachments list. So if this gun takes a special stock, add it here.
var/list/unique_attachments = list()
///The types of attachments that aren't allowed. Removes it from the base valid_attachments list.
Expand Down Expand Up @@ -352,7 +350,6 @@
. = ..()
var/list/attachment_list = valid_attachments
attachment_list += unique_attachments
attachment_list += weapon_class_attachments
if(refused_attachments)
for(var/to_remove in attachment_list)
if(refused_attachments.Find(to_remove))
Expand Down
2 changes: 1 addition & 1 deletion code/modules/projectiles/guns/ballistic/assault.dm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
)

//truly a doohickey for every occasion
weapon_class_attachments = list (
unique_attachments = list (
/obj/item/attachment/scope,
/obj/item/attachment/long_scope,
/obj/item/attachment/energy_bayonet,
Expand Down

0 comments on commit d1a39f8

Please sign in to comment.