Skip to content

Commit

Permalink
Changes person cap on pod from hardcoded to var (#4130)
Browse files Browse the repository at this point in the history
# About the pull request

Changes hardcoded number to var

# Explain why it's good for the game

Vars are easier to work with

# Testing Photographs and Procedure
<details>
<summary>Screenshots & Videos</summary>

I did not test this

</details>


# Changelog
:cl:
code: occupant limit of evacuation pods changed to a variable
/:cl:
  • Loading branch information
BeagleGaming1 committed Aug 8, 2023
1 parent a99fc29 commit 0f2be85
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions code/modules/shuttle/shuttles/escape_shuttle.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,12 @@
rechargeTime = SHUTTLE_RECHARGE
ignitionTime = 8 SECONDS
ignition_sound = 'sound/effects/escape_pod_warmup.ogg'
/// The % chance of the escape pod crashing into the groundmap
/// The % chance of the escape pod crashing into the groundmap before lifeboats leaving
var/early_crash_land_chance = 75
/// The % chance of the escape pod crashing into the groundmap
var/crash_land_chance = 25
/// How many people can be in the escape pod before it crashes
var/max_capacity = 3

var/datum/door_controller/single/door_handler = new()
var/launched = FALSE
Expand Down Expand Up @@ -71,7 +74,7 @@
occupant_count++
for(var/obj/structure/machinery/cryopod/evacuation/cryotube in interior_area)
cryos += list(cryotube)
if (occupant_count > 3)
if (occupant_count > max_capacity)
playsound(src,'sound/effects/escape_pod_warmup.ogg', 50, 1)
sleep(31)
var/turf/sploded = return_center_turf()
Expand Down

0 comments on commit 0f2be85

Please sign in to comment.