Skip to content

Commit

Permalink
Update flamer.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveloopers authored Jan 22, 2024
1 parent 417156b commit 11745f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/projectiles/magazines/flamer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
to_chat(user, SPAN_WARNING("This chemical is not potent enough to be used in a flamethrower!"))
return

var/fuel_amt_to_remove = Clamp(to_add.volume, 0, max_rounds - reagents.get_reagent_amount(to_add.id))
var/fuel_amt_to_remove = clamp(to_add.volume, 0, max_rounds - reagents.get_reagent_amount(to_add.id))
if(!fuel_amt_to_remove)
if(!max_rounds)
to_chat(user, SPAN_WARNING("[target] is empty!"))
Expand Down Expand Up @@ -173,7 +173,7 @@
if(usr.get_active_hand() != src)
return

var/set_pressure = Clamp(tgui_input_number(usr, "Change fuel pressure to: (max: [max_pressure])", "Fuel pressure", fuel_pressure, 10, 1), 1 ,max_pressure)
var/set_pressure = clamp(tgui_input_number(usr, "Change fuel pressure to: (max: [max_pressure])", "Fuel pressure", fuel_pressure, 10, 1), 1 ,max_pressure)
if(!set_pressure)
to_chat(usr, SPAN_WARNING("You can't find that setting on the regulator!"))
else
Expand Down

0 comments on commit 11745f7

Please sign in to comment.