-------------------------------------
Chen (Chen_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/19/20 - Version 2020.12.19
=====================================

- [System] Fixed bug where Chen 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] Fixed oversight that allowed certain moves to be cancelled when they should not be.
- [System] Added workaround that would resolve a bug in Stupa's Training character.
- [System] Fixed issue with horizontal charge buffer that caused Chen to lose charge during turning animations.
- [System] Corrected button strength priority in commands; higher strength buttons now take priority over lower strength buttons.
- Implemented new character-specific intro against Yukari Yakumo.
- 5z: Fixed bug involving proration not applying on the last possible active frames of the attack, fixed bug in flagging of recovery frames.
- Throw: Fixed bug where Stupa's Training character could not tech the throw.
- Throw: Fixed timing where Throw proration flag was set prematurely.
- Immortal Sage's Rumbling [Z followup]: Fixed bug involving proration not applying on the last possible active frames of the attack.
- Immortal Sage's Rumbling [Z followup]: Fixed bug in flagging of recovery frames.
- Jumping Crossing Scales [Z followup]: Fixed bug involving proration not applying on the last possible active frames of the attack.
- Jumping Crossing Scales [Z followup]: Fixed bug in flagging of recovery frames.
- "Soaring Bishamonten": Fixed graphical bug involving effects during superpauses.

=====================================
09/04/20 - Version 2020.09.04
=====================================

- [System] Fixed bug involving counterhit explods.
- [System] Tech recovery command changed to hold x/y/z before hitting ground. Can now tech left or right.
- [System] Damage dampener 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.
- 5x: Hitbox size slightly increased.
- 5y: Hitbox size slightly increased, hitbox size extended, recovery decreased by 3f, effect added.
- 6y: Hitbox size slightly increased, effect timing adjusted.
- 5z: Hitbox size slightly increased, recovery decreased by 4f.
- 2x: Hitbox size extended upward.
- 2y: Hitbox size slightly increased, recover decreased by 1f.
- 2z: Hit velocity on block increased.
- j.5x: Hitbox size slightly increased, effect added.
- j.5y: Corrected counterhit hitstun bonus value, hitbox size slightly increased, hurtbox size slightly decreased.
- j.5z: Hitbox positions adjusted & size increased, effect added, now causes ground bounce on counterhit.
- Throw: Tech window increased (7f->15f).
- Throw: Fixed Ikemen-exclusive bug & bug involving fall flags.
- Nekomata Feral Movement: Now has a follow up that can be performed by pressing any attack button.
- Immortal Sage's Rumbling: Damage increased (80/90/100->80/100/120).
- Immortal Sage's Rumbling [Z followup]: Fixed the multihit variable not reseting at the start of the attack.
- Immortal Sage's Rumbling [Z followup]: Adjusted how proration is handled, hitbox extended, effect added.
- Jumping Crossing Scales [Z followup]: Fixed the multihit variable not reseting at the start of the attack.
- Jumping Crossing Scales [Z followup]: Adjusted how proration is handled, hitbox extended, effect added.
- Dharmapala's Rampage: Fixed Ikemen-exclusive bug & bug involving fall flags.
- Dharmapala's Rampage: Can now hit crouching opponents.
- Flight Sign "Flight of Itaden": Damage per hit increased (54->58), block damage per hit decreased (11->10).
- Flight Sign "Flight of Itaden": Adjusted how proration is handled.
- "Cait Sith of Mayohiga": Projectile hitbox size increased, now drops slightly further from Chen.

=====================================
12/02/19 - Version 2019.12.02
=====================================

- [System] Juggle system now functions independently of M.U.G.E.N's default juggle system.
- "Cait Sith of Mayohiga": Now freezes the timer if the move successfully hits.

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

- [System] Additional miscellaneous common state fixes.

=====================================
08/25/19 - Version 2019.08.25
=====================================

- [System] Fixed an issue where the tech recovery wasn't using all two-punch button combinations.
- [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.
- Dharmapala's Rampage: Can now only connect with standing oppoennts.
- "Flight of Itaden": Adjusted recovery animation.

=====================================
08/09/19 - Version 2019.08.09
=====================================

- [System] Miscellaneous common state fixes and adjustments.
- [System] Air Dash height restriction lowered.
- [System] Fixed an issue where custom stated opponents were getting up a frame too early.

=====================================
04/15/19 - Version 2019.04.15
=====================================

- [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 (4f -> 5f).
- [System] Corrected time in which the forward dash can be jump cancelled.
- [System] Corrected back hop/air dash landing times (10f -> 8f).
- [System] Adjusted how the character handles landing sounds in certain basic states.
- [System] Air dashes now have a height restriction.
- 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.
- 2x: Corrected inability to conserve forward dash momentum into the attack.
- 6y: No longer loses overhead properties when chained into.
- Guard Cancel Counter: No longer gains counterhit bonuses.
- Immortal Sage's Rumbling (Recoil): Added a landing sound effect.
- All Spellcards: Corrected issue with charge buffer that would allow for the moves' activations without releasing back.
- Cait Sith of Mayohiga: Corrected recovery frame flag time. 
- Soaring Bishamonten: Fixed IKEMEN exclusive visual issue where the final hit's effect helper would incorrectly generate a shadow.

=====================================
12/08/18 - Version 2018.12.08
=====================================

- Adjusted Hitvels on Aerial Normals.
- Immortal Sage's Rumbling: Velocities increased, hitbox size slightly increased.
- Dharmapala's Rampage: Can now hit airborne opponents.

=====================================
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/27/18 - Version 2018.08.27
=====================================

- Charge input buffer reduced to 40f (from 45f).
- Immortal Sage's Rumbling: Is now air usable. Is no longer air unblockable.
- Immortal Sage's Rumbling [Ground Z ver]: Startup invincibility increased by 8f.
- Rumbling Jikokuten: Startup increased by 6f/8f/10f, recovery increased by 2f/4f/7f.
- Jumping Crossing Scales: Startup decreased by 6f. Now remains invincible until 8f after initial landing.

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

- Rumbling Jikokuten: Button press now determines projectile speed. Damage of Y and Z versions decreased.

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

- Fixed counterhit related bugs.

=====================================
05/19/18 - Version 2018.05.19
=====================================

- Fixed additional bugs in reset system.

=====================================
05/02/18 - Version 2018.05.02
=====================================

- Forward dash velocity increased.
- 6y: Startup decreased by 2f. Blockstun increased by 3f, is now +2 on block.
- 3z: Fixed unintended knockdown behavior.
- Throw: Now applies 90% proration in addition to standard throw proration.
- Rumbling Jikokuten: Fixed chip damage being static for all versions, added projectile limiter.

=====================================
03/20/18 - Version 2018.03.20
=====================================

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

=====================================
12/12/17 - Version 2017.12.12
=====================================

- "Soaring Bishamonten": Fixed conflicting code that rendered Chen vulnerable after 1st hit.
- "Soaring Bishamonten": Added safeguard in case opponent gets stuck in hitstate.

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

- Fixed incorrect sounds played when Chen is knocked down.
- Adjustments to system animations.
- "Pentagram Flight": Hit opponents now follow Chen's trajectory until the final hit.

=====================================
10/10/17 - Version 2017.10.10
=====================================

- New mechanic added: Guard Cancel Counter (412x/y/z during blockstun).
- Charge input buffers lowered from 50f to 45f.
- Added safeguard during throws in event opponent is lost.
- 5x: Proration increased (92%->96%).
- 5y: Proration increased (85%->90%).
- 5z: Proration increased (92%xN->92.5%xN).
- 2x: Damage increased (20->25).
- j5x: Proration increased (90%->92%).
- j5y: Proration increased (80%->85%).
- Immortal Sage's Rumbling [Z ver]: Can now be airblocked.
- Rumbling Jikokuten: Power gains increased (30/40/20->30/60/30).
- Rumbling Jikokuten: Projectile Behavior changed.
- Rumbling Jikokuten [X ver]: Damage increased (55->60).
- Rumbling Jikokuten [Y ver]: Damage increased (55->75).
- Rumbling Jikokuten [Z ver]: Damage increased (55->90).
- "Flight of Itaden": Can now be used in the air.
- "Pentagram Flight": Can now be airblocked.
- "Cait Sith of Mayohiga": Initial projectile now spawns further away from Chen.
- "Cait Sith of Mayohiga": Total damage increased (420->440).
- "Cait Sith of Mayohiga": Chip damage increased (50->88).
- "Soaring Bishamonten": Damage on initial hit increased (56->57).
- "Soaring Bishamonten": Chip damage increased (50->84).

=====================================
06/17/17 - Version 2017.06.17
=====================================

- New Special: Dharmapala's Rampage (63214x/y/z).

=====================================
06/14/17 - Version 2017.06.14
=====================================

- 6y: P1 power gains on hit decreased (120->80).
- 6y: P2 power gains on hit decreased (60->40).
- Jumping Crossing Scales: Damage on all versions increased (80->100, 90->110, 100->120).

=====================================
05/29/17 - Version 2017.05.29
=====================================

- Fixed error on super portrait.
- 2z: Fixed voice clip not playing.
- 3z: Fixed voice clip not playing.
- j.5x: Damage reduced (40->35).
- Immortal Sage's Rumbling [Z followup]: P1 power gain per hit decreased (60->30).
- Immortal Sage's Rumbling [Z followup]: P2 power gain per hit decreased (30->15).
- Immortal Sage's Rumbling [Z followup]: Now causes Knockdown.
- Jumping Crossing Scales [Z followup]: P1 power gain per hit decreased (60->30).
- Jumping Crossing Scales [Z followup]: P2 power gain per hit decreased (30->15).
- Jumping Crossing Scales [Z followup]: Now causes Knockdown.
- Nekomata Feral Movement: Velocity increased. Chen now turns to face opponent when getting up.
- Nekomata Feral Movement: Can no longer be cancelled into from Normals.
- Soaring Bishamonten: Chip damage increased (12->50).
- Soaring Bishamonten: Fixed minor errors.

=====================================
05/22/17 - Version 2017.05.22
=====================================

- Fixed minor sprite error on superportrait.
- "Soaring Bishamonten": P2 power gains adjusted.

=====================================
05/17/17 - Version 2017.05.17
=====================================

- Fixed additional minor sprite errors.
- Corrected bug in charge inputs where hold direction didn't need to be released.
- Immortal Sage's Rumbling [Z Followup]: Hitstun increased by 3f, Blockstun increased by 1f.

=====================================
05/16/17 - Version 2017.05.16.01
=====================================

- Four additional palettes added.
- Corrected oversight where 2 existing palettes were not used.
- Extended directional charge requirement by 8f (total: 50f).
- Adjusted buffer leniency for charge inputs on Spellcard attacks.
- Throw can now be mash extended using B or C.

=====================================
05/16/17 - Version 2017.05.16
=====================================

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. Mashing the attack buttons can extend the number of hits.

* 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. Mashing the attack buttons can extend the number of hits.

* F+y (6y) - Red Oni [G]
- Chen summons a red oni for an overhead punch.

* DF+z (3z) - Nekomata Slide [G]
- Chen does a sliding dive along the ground, hitting low for a Hard Knockdown.

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

* B,DB,D + x/y/z (412x, 412y, or 412z) - Guard Cancel [G]
- Requires 1000 Power, can only be done during blockstun. Chen counterattacks using the z version of Immortal
  Sage's Rumbling. Note that Chen will not be able to use any of her followups to this move.

* Charge B,F + x/y/z ([4]6x, [4]6y, or [4]6z) - Immortal Sage's Rumbling [GA]
- Chen curls up and does a rolling dash forward, recoiling on contact. Pressing x, y, or z after the
  initial hit causes Chen to perform a different follow-up attack. The ground z version of the roll has
  startup invincibility, but is the most punishable.

* Charge D,U + x/y/z ([2]8x, [2]8y, or [2]8z) - Jumping Crossing Scale [G]
- Chen curls up and leaps backward, before leaping in a forward arc. Long startup time, but is completely
  invincible on the back leap and hits overhead. Pressing x, y, or z after the initial hit causes Chen to
  perform a different follow-up attack.

* B,DB,D,DF,F + x/y/z (41236x, 41236y, or 41236z) - Rumbling Jikoku-ten [G]
- Chen kicks up a cloud of dust. Projectile that hits OTG. Button press determines the speed the projectile
  travels, as well as damage.

* F,DF,D,DB,B + x/y/z (63214x, 63214y, or 63214z) - Dharmapala's Rampage [G]
- Command grab. Chen leaps forward and grabs the opponent, sending them upward on hit. Button press determines
  how far Chen leaps.

* x+y+z - Nekomata Feral Movement [G]
- Chen crawls a small distance forward. Is completely invincible to non-throws during the crawl animation, and
  can pass through opponents. If any attack button is pressed during the crawl, Chen will perform a sliding attack.

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

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

* Charge B,F,B,F + x/y/z ([4]646x, [4]646y, or [4]646z) - Flight Sign "Flight of Itaden" [GA]
- Chen curls up and does a rolling dash forward, similar to Immortal Sage's Rumbling, but hits OTG when used
  on the ground. Holding the button press allows Chen to delay the forward roll.

* Charge DB,DF,DB,UF + x/y/z ([1]319x, ([1]319y, or ([1]319z) - Shikigami Sign "Pentagram Flight" [G]
- Chen curls up and does a rolling dash upward in a pentagram shaped-flight pattern for multiple hits. Chen
  is completely invincible during the startup and the first few active frames.

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

* Charge DB,DF,DB,UF + x+y+z ([1]319xyz) - "Cait Sith of Mayohiga" [G]
- Chen summons the stray cats of Mayohiga to attack the opponent. They're not exactly fond of being given orders,
  so they take things a bit too far than what Chen can handle. At least she has startup invincibility.

* Charge B,F,B,F + x+y+z ([4]646xyz) - "Soaring Bishamonten" [G]
- Chen curls up and does a rolling dash forward, repeatedly chasing down and barging into the opponent on successful
  hit. Chen is completely immune to projectiles during this time.


------------------
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
Gomashio		- Sprites
DoomBowser		- Additional fixes

Palette Contributors:
- DoomBowser
- GarchompMatt
- Gudine
- Jenngra505
- RoySquadRocks
- elementhedge
- EndercreeperMugen

Beta Testers:
- DoomBowser
- Rodknee