Shiptest 13 - Modules - TypesVar Details - Proc Details

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_storedHow many carp spawns it has available.
dragonA reference to the Space Dragon that created it.
max_chargeThe maximum charge the rift can have. It actually goes to max_charge + 1, as to prevent constantly retriggering the effects on full charge.
time_chargedThe amount of time the rift has charged for.

Procs

summon_carpUsed to create carp controlled by ghosts when the option is available.
update_checkDoes a series of checks based on the portal's status.

Var Details

carp_stored

How many carp spawns it has available.

dragon

A reference to the Space Dragon that created it.

max_charge

The maximum charge the rift can have. It actually goes to max_charge + 1, as to prevent constantly retriggering the effects on full charge.

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:

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 40, 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.