Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lesser Drone now Has 3 Guarantied Slots #4045

Merged
merged 4 commits into from
Aug 2, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion code/modules/mob/living/carbon/xenomorph/xeno_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,8 @@

/// How many lesser drones the hive can support
var/lesser_drone_limit = 0
/// Slots available for lesser drones will never go below this number
var/lesser_drone_minimum = 3

var/datum/tacmap/xeno/tacmap
var/minimap_type = MINIMAP_FLAG_XENO
Expand Down Expand Up @@ -1052,7 +1054,7 @@
hugger.timeofdeath = user.timeofdeath // Keep old death time

/datum/hive_status/proc/update_lesser_drone_limit()
lesser_drone_limit = Ceiling(totalXenos.len / 3)
lesser_drone_limit = lesser_drone_minimum + Ceiling(length(totalXenos) / 3)
Ben10083 marked this conversation as resolved.
Show resolved Hide resolved

/datum/hive_status/proc/can_spawn_as_lesser_drone(mob/dead/observer/user)
if(!GLOB.hive_datum || ! GLOB.hive_datum[hivenumber])
Expand Down