-
Notifications
You must be signed in to change notification settings - Fork 114
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
more upp nades #597
Conversation
There was a problem hiding this 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
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: