/tg/ Station 13 - 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 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:

Vars

gustThe innate ability to use wing 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.
riftThe innate ability to summon rifts
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
small_sprite_typeThe togglable small sprite action
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 guat. If set to true, prevents him from moving and doing certain actions.

Procs

destroy_riftsDestroys all of Space Dragon's current rifts.
dragon_fire_lineWhat occurs on each tile to actually create the fire.
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.
reset_statusResets Space Dragon's status after using wing gust.
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

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.

Proc Details

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.

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:

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:

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_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. Depowered simply resets him back to his default state.

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.