-------------------------------------
Reisen Udongein Inaba (Reisen_RP)
(Touhou: Gensokyo Reloaded version)
-------------------------------------
Author: RicePigeon

------------------
Contents
------------------

1. Contents (You're reading this)
2. Version Changes
2. Movelist
  2a. Command Moves
  2b. Specials
  2c. Spellcards
3. Credits

------------------
Version Changes
------------------

=====================================
12/30/20 - Version 2020.12.30
=====================================

- [System] Fixed bug where Reisen was vulnerable to grabs during pre-jump frames.
- [System] Fixed graphical bug involving dash effects during superpauses.
- [System] Fixed an issue where getup invulnerability would end prematurely if an attack was performed on the same frame control was regained.
- [System] Added workaround that would resolve a bug in Stupa's Training character.
- [System] Corrected button strength priority in commands; higher strength buttons now take priority over lower strength buttons.
- [System] Fixed visual glitch involving Reisen's flask display not updating during superpauses.
- [System] Fixed issue where Reisen could not tech recover backward or forward.
- 2y: Can no longer KO an opponent via chip damage.
- 2z: Guard velocity increased.
- Throw: Fixed bug where Stupa's Training character could not tech the throw.
- Throw: Fixed timing where Throw proration flag was set prematurely.
- Undersense Break: Corrected hitstun bonus from counterhits.
- Spell Breaking Drug: Now always has a full stock when facing against Stupa's Training character.
- "Lunatic Echo": Projectiles now ricochet off the ground, no longer turns to face opponent when used.
- "Lunatic Red Eyes": Fixed bug where proration was only being applied once, regardless of how many times the attack hits.

=====================================
08/17/20 - Version 2020.08.17
=====================================

- Throw: Removed fall parameter glitch.
- Fixed incorrect Counterhit stun bonuses on air Normals.

=====================================
08/10/20 - Version 2020.08.10
=====================================

- [System] Tech recovery command changed to hold x/y/z before hitting ground. Can now tech left or right.
- [System] Throw tech window increased (7f->15f).
- [System] Damage proration no longer uses Attackmulset.
- [System] All combos now apply a one-time 75% prorate for the second attack onward.
- [System] Implemented flag that prevents multi-hit moves from applying forced 75% proration to its remaining hits.
- Air dash velocities decreased, now uses the same velocity as grounded dashes.
- Life Decreased (950->900).
- 5x: Recovery frames increased by 1f.
- 5y: Recovery frames increased by 1f.
- 6y: Startup increased by 6f.
- 5z: Recovery frames increased by 1f.
- 2z: Hit velocity on block increased.
- j5x: Startup increased by 1f.
- j5y: Startup increased by 1f, hitbox extended behind Reisen.
- j5z: Startup increased by 2f.
- Throw: Fixed Ikemen-exclusive bug.
- Mind Explosion [Air ver]: Startup increased by 1f.
- Mind Explosion [Air ver]: Landing recovery increased by 6f.
- "X-Wave": Hit velocity on block decreased.
- "Lunacy Ray": Recovery increased by 2f.
- "Lunatic Echo": Landing recovery increased by 7f.

=====================================
10/10/19 - Version 2019.10.10
=====================================

- [System] Juggle system now functions independently of M.U.G.E.N's default juggle system.

=====================================
09/26/19 - Version 2019.09.26
=====================================

- [System] Fixed a minor error in the tick fix code.

=====================================
09/02/19 - Version 2019.09.02
=====================================

- [System] Fixed an issue where the tech recovery wasn't using all two-punch button combinations.
- [System] Miscellaneous common state fixes and adjustments.
- [System] Fixed various timing issues pertaining to Spellcard effects.
- [System] Opponents will now always go into the air recovery anim at the same time as the reset state.
- [System] Reset landing now grants opponents increased full invulnerability (2f->3f) and 6f extra grab invulnerability.
- [System] Added numerous state numbers that were missing from the tick fix code.

=====================================
06/07/19 - Version 2019.06.07
=====================================

- j.5z: Corrected airguard y-velocity.

=====================================
05/12/19 - Version 2019.05.12
=====================================

- [System] Air dashes now have a height restriction when ascending.

=====================================
04/09/19 - Version 2019.04.09
=====================================

- [System] Minor adjustments to hurtboxes in some gethit states.
- [System] Updated outdated Recovery frame flags to current standards.
- [System] Updated outdated Hitdef triggers to current standards.
- [System] Groundbounces & Wallbounces no longer allow opponents to quick getup upon landing.
- [System] Corrected regular jump landing time (5f -> 4f).
- [System] Corrected forward dash startup time (7f -> 5f).
- [System] Corrected time in which the forward dash can be jump cancelled.
- [System] Corrected back hop/air dash landing times (12f -> 8f).
- [System] Adjusted how the character handles landing sounds in certain basic states.
- Fixed visual issue where the tech recovery explod was being affected by palfx.
- Fixed IKEMEN exclusive visual issue where the Dash/Guard Cancel Counter/Spellcard effect helpers would incorrectly generate a shadow.
- 6y: Corrected juggle flag.
- 2x: Corrected inability to conserve forward dash momentum into the attack.
- Guard Cancel Counter: No longer gains counterhit bonuses.
- Lunacy Ray: Fixed IKEMEN exclusive visual issue where the laser effect helpers would incorrectly generate a shadow.

=====================================
02/18/19 - Version 2019.02.18
=====================================

- 2y: Corrected juggle flags.

=====================================
01/28/19 - Version 2019.01.28
=====================================

- Disbelief Aspect: Fixed issue with juggle flags.
- "X-Wave": Fixed issue where opponent could recover prematurely.
- "Lunatic Red Eyes": Fixed issue where opponent could recover prematurely.
- "Tele-Mesmerism": Fixed issue where opponent could recover prematurely.

=====================================
12/02/18 - Version 2018.12.02
=====================================

- [System] Fixed bug involving OTGs.

=====================================
09/20/18 - Version 2018.09.20
=====================================

- Fixed a minor issue with reset.

=====================================
08/22/18 - Version 2018.08.22
=====================================

- Throw: Hitbox size slightly increased. No longer gains a hitbox extension while a clone is active.
- 2y: Recovery increased by 1f, projectile duration decreased by 2f.
- Illusionary Blast [X ver]: No longer has blocking restrictions. Now has upper body and projectile invulnerability until recovery.
- Ultrared Field/"X-wave": Projectile invincibility restored.

=====================================
08/21/18 - Version 2018.08.21
=====================================

- Ultrared Field/"X-wave": Reisen no longer possesses projectile invincibility while invisible. Now periodically becomes briefly visible.

=====================================
08/14/18 - Version 2018.08.14
=====================================

- Undersense Break: Hitbox vertical size slightly decreased. Is now air blockable.
- "X-Wave": Damage decreased (40xN->36xN).

=====================================
06/25/18 - Version 2018.06.25
=====================================

- Illusionary Blast: Fixed bug regarding crossup inputs.

=====================================
06/03/18 - Version 2018.06.03
=====================================

- Fixed cloning bug on chaining of Reisen's Normals.

=====================================
05/28/18 - Version 2018.05.28
=====================================

- Movement speed slightly increased.
- Disbelief Aspect: Startup decreased by 7f.
- Disbelief Aspect [X ver]: Can now be dash cancelled after the apex of Reisen's jump.
- Disbelief Aspect [Y ver]: Recovery drastically decreased.
- "X-Wave": Damage per hit increased (34xN->40xN).

=====================================
05/27/18 - Version 2018.05.27
=====================================

- Fixed counterhit related bugs.

=====================================
05/18/18 - Version 2018.05.18
=====================================

- Fixed additional bugs in reset code.

=====================================
05/03/18 - Version 2018.05.03
=====================================

- 6y: Can now be airblocked.
- Undersense Break: Fixed incorrect juggle flags.

=====================================
03/17/18 - Version 2018.03.17
=====================================

- Adjustments to reset behavior.
- Fixed Guarding behavior regarding crossups.
- Fixed Invulnerability times on Guard Cancel Counter.

=====================================
02/27/18 - Version 2018.02.27
=====================================

- Various bug fixes with dash cancel timings.
- Walk & Forward Dash speeds increased.
- 2z: Hit velocities adjusted.
- j5z: Hitbox size decreased, hurtbox size increased.
- j5z: Startup increased by 1f. Hit & block velocities decreased.
- Throw: Now applies an additional 90% proration on successful grab.
- Mind Explosion: Startup decreased by 3f.
- Mind Explosion: Projectile now spawns from clone's position if a clone is present.
- Mind Explosion: Fixed minor visual bug.
- Undersense Break: Startup decreased by 2f. Now has 7f of Startup invulnerability.
- Undersense Break: Now has its range extended by Ultraviolet Field.
- Illusionary Blast: Fixed visual bug when hit by certain projectiles.
- "Lunacy Ray": Fixed graphical bug when interacting with projectiles. Now has 3 second cooldown after use.
- "X-Wave": Startup decreased by 5f.

=====================================
11/25/17 - Version 2017.11.25
=====================================

- Fixed bug where incorrect sounds are played when Reisen is knocked down.
- Fixed missing dust effects from ground tech recovery.

=====================================
09/30/17 - Version 2017.09.30
=====================================

- New mechanic added: Guard Cancel Counter (412x/y/z during blockstun).
- Fixed missing dust effects from ground tech recovery.
- Vertical hurtbox size during aerial states decreased.
- Forward dash velocity slightly increased.
- 5y: Power gains decreased (0/80/40->0/60/30).
- 5z: Damage increased (65->70).
- 5z: Proration increased (80%->85%).
- 5z: Power gains decreased (0/120/60->0/90/45).
- 4z/6z: Power gains decreased (0/120/60->0/90/45).
- 2y: Power gains decreased (0/40x2/20x2->0/30x2/15x2).
- 2z: Power gains decreased (0/120/60->0/90/45).
- j5y: Power gains decreased (0/80/40->0/60/30).
- j5z: Power gains decreased (0/120/60->0/90/45).
- j2z: Power gains decreased (0/120/60->0/90/45).
- jzz: Hit velocities adjusted, now causes a knockdown versus airborne opponents.
- Mind Explosion: Power gains adjusted (15/80*20*20/40*10*10->20/30x3/15x3).
- Mind Explosion: Chip damage increased (3x3->5x3).
- Ultrared Field: No longer gains power on use.
- Ultrared Field: Durations increased (2 sec -> 2.67 sec, 3.5 sec -> 4 sec).
- Ultrared Field [623 ver]: Field size increased by approx 20%.
- Ultraviolet Field: No longer gains power on use.
- Ultraviolet Field: Durations increased (2 sec -> 2.67 sec, 3.5 sec -> 4 sec).
- Ultraviolet Field [623 ver]: Field size increased by approx 20%.
- Undersense Break: Chip damage decreased (5xN->4xN).
- Illusionary Blast: Power gains adjusted (15/20xN/10xN->20/18xN/9xN).
- Illusionary Blast: Chip damage increased (4xN->5xN).
- Disbelief Aspect: Power gain on startup increased (15->20).
- Disbelief Aspect: Chip damage increased (2xN->6xN).
- Spellbreaking Drug: Power gains adjusted (15/40/-1000/40->20/60/-1000/30).
- "X-Wave": P2 Power gains increased (42xN->43xN).
- "Lunacy Ray": Chip damage decreased (26x2->24x2).
- "Lunatic Echo": Fixed bug where projectiles would not spawn if Reisen is above a certain stage height.
- "Lunatic Red Eyes": Chip damage decreased (5xN->4xN).

=====================================
08/13/17 - Version 2017.08.13
=====================================

- Safeguard implemented if target is somehow lost during throws.

=====================================
08/02/17 - Version 2017.08.02
=====================================

- Various adjustments to hit animations.

=====================================
05/13/17 - Version 2017.05.13
=====================================

- New Spellcard: Ricochet "Lunatic Echo" (236236x/y/z, air only)

=====================================
04/20/17 - Version 2017.04.20
=====================================

- Fixed bug involving graphical display of Spellcard selection.
- Added 1 new intro that totally isn't inspired by a certain console port.
- j.5z: Now causes knockdown on counterhit.

=====================================
03/12/17 - Version 2017.03.12
=====================================

- Fixed issue with anim 5160.
- "X-Wave": Z version now turns Reisen invisible on hit instead of producing a clone.

=====================================
12/31/16 - Version 2016.12.31
=====================================

Changes from Version 2016.11.19

- Drug UI repositioned.
- Illusionary Blast [Z Version]: Vertical velocity decreased.
- Illusionary Blast [Z Version]: Recovery time increased.
- Illusionary Blast [Z Version]: Can now be air blocked.

=====================================
11/19/16 - Version 2016.11.19
=====================================

Changes from Version 2016.10.31

- Adjustments to hit behaviors.
- Grab range decreased.
- Illusionary Blast [X Version]: Startup increased by 2f, recovery by 1f.
- Illusionary Blast [Y Version]: Startup increased by 2f, recovery by 1f.

=====================================
10/31/16 - Version 2016.10.31
=====================================

Changes from Version 2016.10.26

- Fixed knockdown issues.

=====================================
10/26/16 - Version 2016.10.26
=====================================

Changes from Version 2016.10.10

- Fixed KO animation issues.

=====================================
10/10/16 - Version 2016.10.10
=====================================

First release


------------------
Movelist
------------------
 
X - Light Attack
Y - Medium Attack
Z - Heavy Attack
A - Dash Shortcut
B - Shortcut for y+z
C - Shortcut for x+y+z
Start - Taunt

------------------
Command Moves
------------------

Note: Each move indicates if it can be done on the ground only [G], in the air only [A], or both [GA]

* F,F or F+a (66 or 6a) - Forward Dash [GA] 
- The ground version can be jump cancelled or cancelled into ground moves, while the aerial version can
  be cancelled into aerials.

* B,B or B+a (44 or 4a) - Backward Dash [GA] 
- Both the ground and aerial versions can be cancelled into aerials.

* y+z (5yz) - Forward Throw [G] 
- Can be teched out of by pressing any button while holding back or forward; opponent cannot tech if 
  grabbed in the middle of an attack.

* B+y+z (4yz) - Backward Throw [G]
- Can be teched out of by pressing any button while holding back or forward; opponent cannot tech if 
  grabbed in the middle of an attack.

* F+y (6y) - Trick Kick [G]
- Reisen performs a fakeout illusion of her 2z, but reappears in midair performing an overhead divekick.

* F+z or B+z (6z or 4z) - Super Udonge Punch [G]
- Reisen pulls back for a windup punch, reappearing some distance away from her initial position based on
  the input. Can be used to cross up the opponent under the right circumstances.

* j.D+z (j.2z) - Downward Flip Kick [A]
- Reisen performs a downward flip kick in midair.

------------------
Specials
------------------

* B,DB,D + x/y/z (412x, 412y, or 412z) - Guard Cancel [G]
- Requires 1000 Power, can only be done during blockstun. Reisen counterattacks using Undersense Break with full startup invincibility.

* D,DF,F + x/y/z (236x, 236y, or 236z) - Mind Explosion [GA]
- Reisen fires a large bullet from her "gunhand", which explodes on contact. Button press determines the angle of the
  bullet. All versions slightly curve toward the opponent, and all air versions have recoil. 

* F,D,DF + x or B,D,DB + x (623x or 421x) - Ultrared Field [G]
- Reisen generates a red field on the stage. As long as the opponent is inside this field, Reisen will be invisible.
  The 421 version generates the field around Reisen, while the 623 version generates the field around the opponent's position.

* F,D,DF + y or B,D,DB + y (623y or 421y) - Ultraviolet Field [G]
- Reisen generates a purple field on the stage. As long as the opponent is inside this field, Reisen will be have an
  copy illusion in front of her, extending the reach of her normal attacks. The 421 version generates the field around Reisen,
  while the 623 version generates the field around the opponent's position.

* F,D,DF + z or B,D,DB + z (623z or 421z) - Undersense Break [G]
- Reisen covers her eye while letting loose energy from her eyes, causing it to scatter around her. A quick melee attack
  that best works as an anti-air reversal, but can be air blocked.

* F,DF,D,DB,B + x/y/z (63214x, 63214y, or 63214z) - Illusionary Blast [G]
- Reisen rears back and lets forth a multi-hitting beam from her eyes. The X version has projectile invulnerability, while the
  Z version aims upward.

* D,DB,B + x/y (214x or 214y) - Disbelief Aspect [G]
- Reisen creates a clone of herself which dissipates after firing bullets. The version used determines whether Reisen or
  her clone jumps, while the clone will always fire bullets regardless.

* D,DB,B + z (214z) - Spell-Breaking Drug [G] (Requires 1 Drug stock)
- Reisen tosses a glass drug vial containing an elixir that, upon successful hit, drains 1000 power from the opponent. Can
  only be used if Reisen has at least 1 drug stock available, and will gain more as she takes damage.

------------------
Spellcards
------------------

=============================
Level 1 Spellcards
=============================

* D,DB,B,D,DB,B + x/y/z (214214x, 236236y, or 236236z) - Short Sight "X-Wave" [G]
- Reisen performs a super version of her Undersense Break, creating a purple wave of light that, on contact, creates a clone
  similar to Ultraviolet Field that lasts for 8 seconds. Has completely invincibility on startup. The Z version, however,
  causes Reisen to turn invisible for 8 seconds instead.

* D,DF,F,D,DF,F + x/y/z (236236x, 236236y, or 236236z) - Red Eyes "Lunacy Ray" [G]
- Reisen performs a double sweeping arc with her Illusionary Blast, hitting OTG and sweeping the opponent upwards on hit. Has
  a 3 second cooldown after using.

* D,DF,F,D,DF,F + x/y/z (236236x, 236236y, or 236236z) - Ricochet "Lunatic Echo" [A]
- Reisen shoots a series of waves downward from her hand, which bounce off the ground. Hits OTG, but Reisen suffers a bit of recoil from use.

=============================
Level 3 Spellcards
=============================

* D,DF,F,D,DF,F + x+y+z (236236xyz) - "Tele-Mesmerism" [G]
- Must be selected prior to match. Reisen sends out a tracing laser from the moon, tracking the opponent's position before
  firing. Holding the button will delay the firing of the laser, causing the attack to deal more hits and more damage.

* D,DB,B,D,DB,B + x+y+z (214214xyz) - "Lunatic Red Eyes" [GA]
- Must be selected prior to match. Reisen lets loose several waves of energy from her eyes, which spread out to cover the
  stage. Acts as a fullscreen when used mid-screen.


------------------
Credits
------------------

Elecbyte 		- For making MUGEN.
ZUN             	- For creating the Touhou project.
Daniel9999999		- Recycled code portions, beta testing, and a good friend in general
Flawless		- Original X-Costume Selector code
reddosukato		- Sprites
KON			- Tewi sprites
DoomBowser		- Additional fixes.

Palette Contributors: 
- IkuTronHD
- DoomBowser
- smoke072
- GarchompMatt
- Data_Drain
- ExL

Beta Testers:
- slayraptor64
- DoomBowser