mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
Clown car now cares about maximum amount of drivers (#84956)
## About The Pull Request Closes #81806 ## Changelog 🆑 fix: You can no longer fit an infinite amount of drivers into a clown car - making spy-acquired clown cars usable! /🆑
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
initialize_controller_action_type(/datum/action/vehicle/sealed/thank, VEHICLE_CONTROL_KIDNAPPED)
|
||||
|
||||
/obj/vehicle/sealed/car/clowncar/auto_assign_occupant_flags(mob/M)
|
||||
if(ishuman(M))
|
||||
if(ishuman(M) && driver_amount() < max_drivers)
|
||||
var/mob/living/carbon/human/H = M
|
||||
if(is_clown_job(H.mind?.assigned_role) || !enforce_clown_role) //Ensures only clowns can drive the car. (Including more at once)
|
||||
add_control_flags(H, VEHICLE_CONTROL_DRIVE)
|
||||
|
||||
Reference in New Issue
Block a user