[MIRROR] Firelance Can No Longer Be Used When Out of Charge (#8011)

* Adds a Return Value (#61221)

The firelance's afterattack() proc now actually returns after notifying the user it ran out of battery

* Firelance Can No Longer Be Used When Out of Charge

Co-authored-by: Beatrice <83368538+SpaceDragon00@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-09-06 08:07:02 -04:00
committed by GitHub
co-authored by Beatrice
parent 3ba420787b
commit d2bee73092
+1
View File
@@ -167,6 +167,7 @@ GLOBAL_LIST_INIT(adventure_loot_generator_index,generate_generator_index())
return
if(!cell.use(charge_per_use))
to_chat(user,span_warning("[src] battery ran dry!"))
return
ADD_TRAIT(user,TRAIT_IMMOBILIZED,src)
to_chat(user,span_notice("You begin to charge [src]"))
inhand_icon_state = "firelance_charging"