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 30 seconds. Once the victory condition is met, all current rifts become invulnerable to damage, are allowed to spawn infinite sentient space carp, and Space Dragon gets unlimited rage. Alternatively, if the shuttle arrives while Space Dragon is still active, their victory condition will automatically be met and all the rifts will immediately become fully charged. 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.
|chosen_color||The color of the space dragon.|
|devastation_damage_max_percentage||Maximum devastation damage dealt coefficient based on max health|
|devastation_damage_min_percentage||Minimum devastation damage dealt coefficient based on max health|
|gust_distance||The distance Space Dragon's gust reaches|
|gust_tiredness||The amount of tiredness to add to Space Dragon per use of 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|
|tearing_wall||Determines whether or not Space Dragon is currently tearing through a wall.|
|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 gust. If set to true, prevents him from moving and doing certain actions.|
|add_dragon_overlay||Adds the proper overlay to the space dragon.|
|color_selection||Allows space dragon to choose a color for itself.|
|destroy_rifts||Destroys all of Space Dragon's current rifts.|
|dragon_fire_line||What occurs on each tile to actually create the fire.|
|dragon_name||Allows space dragon to choose its own name.|
|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.|
|permanant_empower||Gives Space Dragon their the rift speed buff permanantly.|
|reset_status||Resets Space Dragon's status after using wing gust.|
|rift_depower||Removes Space Dragon's rift speed buff.|
|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 color of the space dragon.
Maximum devastation damage dealt coefficient based on max health
Minimum devastation damage dealt coefficient based on max health
The distance Space Dragon's gust reaches
The amount of tiredness to add to Space Dragon per use of 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
Determines whether or not Space Dragon is currently tearing through a wall.
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 gust. If set to true, prevents him from moving and doing certain actions.
Adds the proper overlay to the space dragon.
Clears the current overlay on space dragon and adds a proper one for whatever animation he's in.
Allows space dragon to choose a color for itself.
Prompts the space dragon to choose a color, from which it will then apply to itself. If an invalid color is given, will re-prompt the dragon until a proper color is chosen.
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 or one of his rifts is destroyed.
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.
Allows space dragon to choose its own name.
Prompts the space dragon to choose a name, which it will then apply to itself. If the name is invalid, will re-prompt the dragon until a proper name is chosen.
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
Gives Space Dragon their the rift speed buff permanantly.
Gives Space Dragon the enraged speed buff from charging rifts permanantly. Only happens in circumstances where Space Dragon completes their objective.
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.
Removes Space Dragon's rift speed buff.
Removes Space Dragon's speed buff from charging a rift. This is only called in rift_empower, which uses a timer to call this after 30 seconds. Also removes the red glow from Space Dragon which is synonymous with the speed buff.
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.
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.