Skip to content

Commit

Permalink
Revert "Update ammunition.dm"
Browse files Browse the repository at this point in the history
This reverts commit b110c851ff4e1af5101725171eae2dbc0b0c8458.
  • Loading branch information
carlarctg authored and Neth Iafin committed Nov 8, 2020
1 parent 812f3b9 commit 7feaaf7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion code/game/machinery/vending/vendor_types/requisitions.dm
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@
list("AMMUNITION BOXES", -1, null, null),
list("Rifle Ammunition Box (10x24mm)", round(scale * 0.9), /obj/item/ammo_box/rounds, VENDOR_ITEM_REGULAR),
list("Rifle Ammunition Box (10x24mm AP)", round(scale * 0.75), /obj/item/ammo_box/rounds/ap, VENDOR_ITEM_REGULAR),
list("SMG Ammunition Box (10x20mm)", round(scale * 0.9), /obj/item/ammo_box/rounds/smg, VENDOR_ITEM_REGULAR),
list("SMG Ammunition Box (10x20mm HV)", round(scale * 0.9), /obj/item/ammo_box/rounds/smg, VENDOR_ITEM_REGULAR),
list("SMG Ammunition Box (10x20mm AP)", round(scale * 0.75), /obj/item/ammo_box/rounds/smg/ap, VENDOR_ITEM_REGULAR),

list("MAGAZINE BOXES", -1, null, null),
Expand Down
2 changes: 1 addition & 1 deletion code/game/machinery/vending/vendor_types/wo_vendors.dm
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@
list("AMMUNITION BOXES", -1, null, null),
list("Rifle Ammunition Box (10x24mm)", round(scale * 0.9), /obj/item/ammo_box/rounds, VENDOR_ITEM_REGULAR),
list("Rifle Ammunition Box (10x24mm AP)", round(scale * 0.75), /obj/item/ammo_box/rounds/ap, VENDOR_ITEM_REGULAR),
list("SMG Ammunition Box (10x20mm)", round(scale * 0.9), /obj/item/ammo_box/rounds/smg, VENDOR_ITEM_REGULAR),
list("SMG Ammunition Box (10x20mm HV)", round(scale * 0.9), /obj/item/ammo_box/rounds/smg, VENDOR_ITEM_REGULAR),
list("SMG Ammunition Box (10x20mm AP)", round(scale * 0.75), /obj/item/ammo_box/rounds/smg/ap, VENDOR_ITEM_REGULAR),
)

Expand Down
6 changes: 3 additions & 3 deletions code/modules/projectiles/updated_projectiles/ammunition.dm
Original file line number Diff line number Diff line change
Expand Up @@ -966,13 +966,13 @@ Turn() or Shift() as there is virtually no overhead. ~N
var/bullets_transferred = 0

//Amount of times timed action will be activated.
//Standard M41A mag of 40 rounds takes 1.5 to refill from the box.
for(var/i = 1;i <= Ceiling(S / 40); i++)
//Standard M41A mag of 40 rounds or SMG mag of 48 takes 1.5 to refill from the box.
for(var/i = 1;i <= Ceiling(S / 48); i++)
if(!do_after(user, 15, INTERRUPT_ALL, action_icon))
to_chat(user, SPAN_NOTICE("You stop transferring rounds from [source] into [destination]."))
break
playsound(loc, pick('sound/weapons/handling/mag_refill_1.ogg', 'sound/weapons/handling/mag_refill_2.ogg', 'sound/weapons/handling/mag_refill_3.ogg'), 25, 1)
var/transfer = min(S - bullets_transferred, 40)
var/transfer = min(S - bullets_transferred, 48)
destination_current += transfer
source_current -= transfer
bullets_transferred += transfer
Expand Down

0 comments on commit 7feaaf7

Please sign in to comment.