Carp Rift
The portals Space Dragon summons to bring carp onto the station.
The portals Space Dragon summons to bring carp onto the station. His main objective is to summon 3 of them and protect them from being destroyed. The portals can summon sentient space carp in limited amounts. The portal also changes color based on whether or not a carp spawn is available. Once it is fully charged, it becomes indestructible, and intermitently spawns non-sentient carp. It is still destroyed if Space Dragon dies.
Vars | |
carp_interval | The interval for adding additional space carp spawns to the rift. |
---|---|
carp_stored | How many carp spawns it has available. |
charge_state | Current charge state of the rift. |
ckey_list | A list of all the ckeys which have used this carp rift to spawn in as carps. |
dragon | A reference to the Space Dragon antag that created it. |
last_carp_inc | The time since an extra carp was added to the ghost role spawning pool. |
max_charge | The maximum charge the rift can have. |
time_charged | The amount of time the rift has charged for. |
Procs | |
summon_carp | Used to create carp controlled by ghosts when the option is available. |
update_check | Does a series of checks based on the portal's status. |
Var Details
carp_interval
The interval for adding additional space carp spawns to the rift.
carp_stored
How many carp spawns it has available.
charge_state
Current charge state of the rift.
ckey_list
A list of all the ckeys which have used this carp rift to spawn in as carps.
dragon
A reference to the Space Dragon antag that created it.
last_carp_inc
The time since an extra carp was added to the ghost role spawning pool.
max_charge
The maximum charge the rift can have.
time_charged
The amount of time the rift has charged for.
Proc Details
summon_carp
Used to create carp controlled by ghosts when the option is available.
Creates a carp for the ghost to control if we have a carp spawn available. Gives them prompt to control a carp, and if our circumstances still allow if when they hit yes, spawn them in as a carp. Also add them to the list of carps in Space Dragon's antgonist datum, so they'll be displayed as having assisted him on round end. Arguments:
- mob/user - The ghost which will take control of the carp.
update_check
Does a series of checks based on the portal's status.
Performs a number of checks based on the current charge of the portal, and triggers various effects accordingly. If the current charge is a multiple of carp_interval, add an extra carp spawn. If we're halfway charged, announce to the crew our location in a CENTCOM announcement. If we're fully charged, tell the crew we are, change our color to yellow, become invulnerable, and give Space Dragon the ability to make another rift, if he hasn't summoned 3 total.