mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-13 17:14:47 +01:00
Fix welders using fuel when clicking on tiles (#65762)
Fixes #49664 Welders now conserve fuel when you accidentally click on tiles.
This commit is contained in:
@@ -136,14 +136,12 @@
|
||||
if(!proximity)
|
||||
return
|
||||
|
||||
if(isOn())
|
||||
if(isOn() && !QDELETED(attacked_atom) && isliving(attacked_atom)) // can't ignite something that doesn't exist
|
||||
handle_fuel_and_temps(1, user)
|
||||
|
||||
if(!QDELETED(attacked_atom) && isliving(attacked_atom)) // can't ignite something that doesn't exist
|
||||
var/mob/living/attacked_mob = attacked_atom
|
||||
if(attacked_mob.IgniteMob())
|
||||
message_admins("[ADMIN_LOOKUPFLW(user)] set [key_name_admin(attacked_mob)] on fire with [src] at [AREACOORD(user)]")
|
||||
log_game("[key_name(user)] set [key_name(attacked_mob)] on fire with [src] at [AREACOORD(user)]")
|
||||
var/mob/living/attacked_mob = attacked_atom
|
||||
if(attacked_mob.IgniteMob())
|
||||
message_admins("[ADMIN_LOOKUPFLW(user)] set [key_name_admin(attacked_mob)] on fire with [src] at [AREACOORD(user)]")
|
||||
log_game("[key_name(user)] set [key_name(attacked_mob)] on fire with [src] at [AREACOORD(user)]")
|
||||
|
||||
if(!status && attacked_atom.is_refillable())
|
||||
reagents.trans_to(attacked_atom, reagents.total_volume, transfered_by = user)
|
||||
|
||||
Reference in New Issue
Block a user