A space-faring leviathan-esque monster which breathes fire and summons carp. Spawned during its respective midround antagonist event.
A space-faring monstrosity who has the ability to breathe dangerous fire breath and uses its powerful wings to knock foes away. Normally spawned as an antagonist during the Space Dragon event, Space Dragon's main goal is to open three rifts from which to pull a great tide of carp onto the station. Space Dragon can summon only one rift at a time, and can do so anywhere a blob is allowed to spawn. In order to trigger his victory condition, Space Dragon must summon and defend three rifts while they charge. Space Dragon, when spawned, has five minutes to summon the first rift. Failing to do so will cause Space Dragon to return from whence he came. When the rift spawns, ghosts can interact with it to spawn in as space carp to help complete the mission. One carp is granted when the rift is first summoned, with an extra one every 40 seconds. Once the victory condition is met, the shuttle is called and all current rifts are allowed to spawn infinite sentient space carp. If a charging rift is destroyed, Space Dragon will be incredibly slowed, and the endlag on his gust attack is greatly increased on each use. Space Dragon has the following abilities to assist him with his objective:
- Can shoot fire in straight line, dealing 30 burn damage and setting those suseptible on fire.
- Can use his wings to temporarily stun and knock back any nearby mobs. This attack has no cooldown, but instead has endlag after the attack where Space Dragon cannot act. This endlag's time decreases over time, but is added to every time he uses the move.
- Can swallow mob corpses to heal for half their max health. Any corpses swallowed are stored within him, and will be regurgitated on death.
- Can tear through any type of wall. This takes 4 seconds for most walls, and 12 seconds for reinforced walls.
|gust||The innate ability to use wing gust|
|maxRiftTimer||Maximum amount of time which can pass without a rift before Space Dragon despawns.|
|objective_complete||Whether or not Space Dragon has completed their objective, and thus triggered the ending sequence.|
|rift||The innate ability to summon rifts|
|riftTimer||Current time since the the last rift was activated. If set to -1, does not increment.|
|rift_list||A list of all of the rifts created by Space Dragon. Used for setting them all to infinite carp spawn when Space Dragon wins, and removing them when Space Dragon dies.|
|rifts_charged||How many rifts have been successfully charged|
|small_sprite_type||The togglable small sprite action|
|tiredness||How much endlag using Wing Gust should apply. Each use of wing gust increments this, and it decreases over time.|
|tiredness_mult||A multiplier to how much each use of wing gust should add to the tiredness variable. Set to 5 if the current rift is destroyed.|
|using_special||Determines whether or not Space Dragon is in the middle of using wing guat. If set to true, prevents him from moving and doing certain actions.|
|destroy_rifts||Destroys all of Space Dragon's current rifts.|
|dragon_fire_line||What occurs on each tile to actually create the fire.|
|eat||Handles consuming and storing consumed things inside Space Dragon|
|empty_contents||Disperses the contents of the mob on the surrounding tiles.|
|fire_stream||Spawns fire at each position in a line from the source to the target.|
|line_target||Determines a line of turfs from sources's position to the target with length range.|
|reset_status||Resets Space Dragon's status after using wing gust.|
|rift_empower||Handles Space Dragon's temporary empowerment after boosting a rift.|
|useGust||Handles wing gust from the windup all the way to the endlag at the end.|
|victory||Sets up Space Dragon's victory for completing the objectives.|
The innate ability to use wing gust
Maximum amount of time which can pass without a rift before Space Dragon despawns.
Whether or not Space Dragon has completed their objective, and thus triggered the ending sequence.
The innate ability to summon rifts
Current time since the the last rift was activated. If set to -1, does not increment.
A list of all of the rifts created by Space Dragon. Used for setting them all to infinite carp spawn when Space Dragon wins, and removing them when Space Dragon dies.
How many rifts have been successfully charged
The togglable small sprite action
How much endlag using Wing Gust should apply. Each use of wing gust increments this, and it decreases over time.
A multiplier to how much each use of wing gust should add to the tiredness variable. Set to 5 if the current rift is destroyed.
Determines whether or not Space Dragon is in the middle of using wing guat. If set to true, prevents him from moving and doing certain actions.
Destroys all of Space Dragon's current rifts.
QDeletes all the current rifts after removing their references to other objects. Currently, the only reference they have is to the Dragon which created them, so we clear that before deleting them. Currently used when Space Dragon dies.
What occurs on each tile to actually create the fire.
Creates a fire on the given turf. It creates a hotspot on the given turf, damages any living mob with 30 burn damage, and damages mechs by 50. It can only hit any given target once. Arguments:
- turf/T - The turf to trigger the effects on.
Handles consuming and storing consumed things inside Space Dragon
Plays a sound and then stores the consumed thing inside Space Dragon. Used in AttackingTarget(), paired with a heal should it succeed. Arguments:
- atom/movable/A - The thing being consumed
Disperses the contents of the mob on the surrounding tiles.
Randomly places the contents of the mob onto surrounding tiles. Has a 10% chance to place on the same tile as the mob.
Spawns fire at each position in a line from the source to the target.
Spawns fire at each position in a line from the source to the target. Stops if it comes into contact with a solid wall, a window, or a door. Delays the spawning of each fire by 1.5 deciseconds. Arguments:
- atom/at - The target
Determines a line of turfs from sources's position to the target with length range.
Determines a line of turfs from the source's position to the target with length range. The line will extend on past the target if the range is large enough, and not reach the target if range is small enough. Arguments:
- offset - whether or not to aim slightly to the left or right of the target
- range - how many turfs should we go out for
- atom/at - The target
Resets Space Dragon's status after using wing gust.
Resets Space Dragon's status after using wing gust. If it isn't dead by the time it calls this method, reset the sprite back to the normal living sprite. Also sets the using_special variable to FALSE, allowing Space Dragon to move and attack freely again.
Handles Space Dragon's temporary empowerment after boosting a rift.
Empowers and depowers Space Dragon after a successful rift charge. Empowered, Space Dragon regains all his health and becomes temporarily faster for 30 seconds, along with being tinted red. Depowered simply resets him back to his default state.
Handles wing gust from the windup all the way to the endlag at the end.
Handles the wing gust attack from start to finish, based on the timer. When intially triggered, starts at 0. Until the timer reaches 10, increase Space Dragon's y position by 2 and call back to the function in 1.5 deciseconds. When the timer is at 10, trigger the attack. Change Space Dragon's sprite. reset his y position, and push all living creatures back in a 3 tile radius and stun them for 5 seconds. Stay in the ending state for how much our tiredness dictates and add to our tiredness. Arguments:
- timer - The timer used for the windup.
Sets up Space Dragon's victory for completing the objectives.
Triggers when Space Dragon completes his objective. Calls the shuttle with a coefficient of 3, making it impossible to recall. Sets all of his rifts to allow for infinite sentient carp spawns Also plays appropiate sounds and CENTCOM messages.