mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 22:17:32 +01:00
Fixes various runtimes
- Fixes flashers runtiming when flashing someone who lacks eyes. - Fixes chem masters runtiming when told to make 0 pills. - Fixes job objective completion runtiming when someone without a PDA completes a job objective. - Fixes the HUDs of clientless robots runtiming when trying to update. - Fixes T-ray scanners causing runtimes when objects they're making visible get deleted. - Fixes mech bay recharge station turfs runtiming if destroyed while missing a recharging port/console.
This commit is contained in:
@@ -562,6 +562,7 @@
|
||||
var/count = 1
|
||||
if (href_list["createpill_multiple"]) count = isgoodnumber(input("Select the number of pills to make.", 10, pillamount) as num)
|
||||
if (count > 20) count = 20 //Pevent people from creating huge stacks of pills easily. Maybe move the number to defines?
|
||||
if (count <= 0) return
|
||||
var/amount_per_pill = reagents.total_volume/count
|
||||
if (amount_per_pill > 50) amount_per_pill = 50
|
||||
var/name = reject_bad_text(input(usr,"Name:","Name your pill!","[reagents.get_master_reagent_name()] ([amount_per_pill] units)"))
|
||||
|
||||
Reference in New Issue
Block a user