Daedalus Dock - Modules - TypesVar Details - Proc Details

Space Dragon

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:

Vars

chosen_colorThe color of the space dragon.
devastation_damage_max_percentageMaximum devastation damage dealt coefficient based on max health
devastation_damage_min_percentageMinimum devastation damage dealt coefficient based on max health
gust_distanceThe distance Space Dragon's gust reaches
gust_tirednessThe amount of tiredness to add to Space Dragon per use of gust
maxRiftTimerMaximum amount of time which can pass without a rift before Space Dragon despawns.
objective_completeWhether or not Space Dragon has completed their objective, and thus triggered the ending sequence.
riftTimerCurrent time since the the last rift was activated. If set to -1, does not increment.
rift_listA 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_chargedHow many rifts have been successfully charged
tearing_wallDetermines whether or not Space Dragon is currently tearing through a wall.
tirednessHow much endlag using Wing Gust should apply. Each use of wing gust increments this, and it decreases over time.
tiredness_multA 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_specialDetermines 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.

Procs

add_dragon_overlayAdds the proper overlay to the space dragon.
color_selectionAllows space dragon to choose a color for itself.
destroy_riftsDestroys all of Space Dragon's current rifts.
dragon_fire_lineWhat occurs on each tile to actually create the fire.
dragon_nameAllows space dragon to choose its own name.
eatHandles consuming and storing consumed things inside Space Dragon
empty_contentsDisperses the contents of the mob on the surrounding tiles.
fire_streamSpawns fire at each position in a line from the source to the target.
line_targetDetermines a line of turfs from sources's position to the target with length range.
permanant_empowerGives Space Dragon their the rift speed buff permanantly.
reset_statusResets Space Dragon's status after using wing gust.
rift_depowerRemoves Space Dragon's rift speed buff.
rift_empowerHandles Space Dragon's temporary empowerment after boosting a rift.
useGustHandles wing gust from the windup all the way to the endlag at the end.
victorySets up Space Dragon's victory for completing the objectives.

Var Details

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.

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.

Proc Details

add_dragon_overlay

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.

color_selection

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.

destroy_rifts

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.

dragon_fire_line

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:

dragon_name

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.

eat

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:

empty_contents

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.

fire_stream

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:

line_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:

permanant_empower

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.

reset_status

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.

rift_depower

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.

rift_empower

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.

useGust

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:

victory

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.