Skip to content

Commit

Permalink
Update flamer.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
iloveloopers authored May 22, 2024
1 parent 39bdf21 commit eb3ea3b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions code/modules/projectiles/magazines/flamer.dm
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
w_class = SIZE_MEDIUM //making sure you can't sneak this onto your belt.
gun_type = /obj/item/weapon/gun/flamer
caliber = "UT-Napthal Fuel" //Ultra Thick Napthal Fuel, from the lore book.
var/custom = FALSE //accepts custom fuels if true

var/flamer_chem = "utnapthal"
flags_magazine = AMMUNITION_HIDE_AMMO
Expand Down Expand Up @@ -90,6 +91,10 @@
to_chat(user, SPAN_WARNING("You can't mix fuel mixtures!"))
return

if(istype(to_add, /datum/reagent/generated) && !custom)
to_chat(user, SPAN_WARNING("[src] cannot accept custom fuels!"))
return

if(!to_add.intensityfire && to_add.id != "stablefoam" && !istype(src, /obj/item/ammo_magazine/flamer_tank/smoke))
to_chat(user, SPAN_WARNING("This chemical is not potent enough to be used in a flamethrower!"))
return
Expand Down Expand Up @@ -161,6 +166,7 @@
max_rounds = 100
max_range = 5
fuel_pressure = 1
custom = TRUE

/obj/item/ammo_magazine/flamer_tank/custom/verb/set_fuel_pressure()
set name = "Change Fuel Pressure"
Expand Down Expand Up @@ -232,6 +238,7 @@
desc = "A large fuel tank for use in the M240-T incinerator unit. This one has been modified with a pressure regulator and a large internal propellant tank. Must be manually attached."
gun_type = /obj/item/weapon/gun/flamer/M240T
max_rounds = 250
custom = TRUE

max_intensity = 60
max_range = 8
Expand All @@ -242,3 +249,4 @@
desc = "A tank holding powdered smoke that expands when exposed to an open flame and carries any chemicals along with it."
matter = list("metal" = 3750)
flamer_chem = null
custom = TRUE

0 comments on commit eb3ea3b

Please sign in to comment.