Skip to content

Commit

Permalink
Lesser Drone now Has 3 Guarantied Slots (#4045)
Browse files Browse the repository at this point in the history
# About the pull request

Lesser Drones now will always have at least 3 slots, no matter the state
of the hive

# Explain why it's good for the game

Lesser Drones as supposed to be a swarm, and at this stage of the game
many Xenos are likely ghosting. This gives them a bigger chance to
participate in rounds (at least the ones where Xenos are on the
backfoot). This should make it so lesser drones have a baseline of 3
slots, plus additional limit based on hive size.

# Changelog
:cl:
add: Lesser Drone Slots now have a minimum, currently set to 3.
/:cl:
  • Loading branch information
Ben10083 authored Aug 2, 2023
1 parent 3c7da31 commit 6a25add
Showing 1 changed file with 3 additions and 1 deletion.
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)

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

0 comments on commit 6a25add

Please sign in to comment.