Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more upp nades #597

Closed
wants to merge 2 commits into from
Closed

more upp nades #597

wants to merge 2 commits into from

Conversation

AndroBetel
Copy link
Contributor

About the pull request

Adds UPP UGLs, 1 to each squad prep
Adds UPP impact nades
Adds UPP smoke nades
Changes some activating sounds

Explain why it's good for the game

UPP no longer lacks a nade option, provides additional playstyle to riflemen

Testing Photographs and Procedure

Screenshots & Videos

Put screenshots and videos here with an empty line between the screenshots and the <details> tags.

Changelog

🆑
add: UPP UGL, UPP impact nades, UPP smoke bombs
fix: Activating sounds for some non-HEDP type nades
/:cl:

Copy link
Contributor

@Doubleumc Doubleumc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than that, code good.

@@ -2897,7 +2900,7 @@ Defined in conflicts.dm of the #defines folder.
update_icon()

/obj/item/attachable/attached_gun/grenade/reload_attachment(obj/item/explosive/grenade/G, mob/user)
if(!breech_open)
if(!breech_open && has_breech)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(!breech_open && has_breech)
if(has_breech && !breech_open)

Real minor nitpick, but reads better if has_breech is checked before breech_open. breech_open depends on has_breech to mean something, so flows better to check has_breech first.

@@ -2918,7 +2921,7 @@ Defined in conflicts.dm of the #defines folder.

/obj/item/attachable/attached_gun/grenade/unload_attachment(mob/user, reload_override = FALSE, drop_override = FALSE, loc_override = FALSE)
. = TRUE //Always uses special unloading.
if(!breech_open)
if(!breech_open && has_breech)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(!breech_open && has_breech)
if(has_breech && !breech_open)

@@ -2943,12 +2946,12 @@ Defined in conflicts.dm of the #defines folder.
if(user)
to_chat(user, SPAN_WARNING("You must hold [gun] with two hands to use \the [src]."))
return
if(breech_open)
if(breech_open && has_breech)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(breech_open && has_breech)
if(has_breech && breech_open)

if(user)
to_chat(user, SPAN_WARNING("You must close the breech to fire \the [src]!"))
playsound(user, 'sound/weapons/gun_empty.ogg', 50, TRUE, 5)
return
if(!cocked)
if(!cocked && has_breech)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if(!cocked && has_breech)
if(has_breech && !cocked)

Same as with breech_open: since cocked relies on has_breech, just reads better to check has_breech first.

@cm13-github
Copy link
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

@AndroBetel AndroBetel closed this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants