-------------------------------------
Byakuren Hijiri (Byakuren_RP)
(Touhou: Gensokyo Reloaded version)
-------------------------------------
Author: RicePigeon

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

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

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

=====================================
01/16/21 - Version 2021.01.16
=====================================

- [System] Fixed bug where Byakuren 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] Fixed issue with certain effects not being affected by superpauses.
- [System] Fixed issue with charge gauge not updating properly under certain situations.
- [System] Fixed timing issue with background darkness effect during certain spellcards.
- [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.
- 5y: Opponent's fall gravity corrected.
- 6y: Opponent's fall gravity corrected.
- 5z: Opponent's fall gravity corrected.
- 6z: Opponent's fall gravity corrected, fixed how proration is handled.
- 2y: Opponent's fall gravity corrected.
- 2z: Opponent's fall gravity corrected, fixed opponent not bouncing after being knocked down.
- j.5x: Opponent's fall gravity corrected.
- j.5y: Opponent's fall gravity corrected.
- j.2y: Opponent's fall gravity corrected, first hit now causes a hard knockdown, fixed 2nd hit not sending opponent into correct reset state.
- j.5z: Opponent's fall gravity corrected.
- Throw: Fixed bug where Stupa's Training character could not tech the throw.
- Throw: Fixed timing where Throw proration flag was set prematurely.
- Skanda's Leg: Fixed handling of proration, fixed hit/guard sound bug that would occur if Byakuren hit on the last active frames of each hitbox.
- "Brilliance of Mahavairocana": Opponent's fall gravity corrected.
- "Angiras Knowledge": No longer plays its own BGM on hit.

=====================================
09/27/20 - Version 2020.09.27
=====================================

- [System] Tech recovery command changed to hold x/y/z before hitting ground. Can now tech left or right.
- [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.
- 2z: Hit velocity on block increased.
- Throw: tech window increased (7f->15f).
- Throw: Fixed Ikemen-exclusive bugs.

=====================================
05/24/20 - Version 2020.05.24
=====================================

- "Angiras Knowledge": Fixed an issue where the move wasn't gaining a counterhit damage bonus.

=====================================
05/08/20 - Version 2020.05.08
=====================================

- Chant: Can no longer grab escape if grabbed while using the move.

=====================================
03/23/20 - Version 2020.03.23
=====================================

- [System] Slight adjustment to head position.
- [System] Character no longer autoturns when landing from a jump or air dash.
- [System] Forward dash startup increased (2f->4f).
- [System] Byakuren can now pass through opponents during the active portion of her dashes.
- [System] Moves can now only be cancelled from a dash 5 frames after Byakuren has fully reappeared. 
- [System] Air dash landing recovery increased (4f->6f).
- [System] Minor adjustments to the handling of landing from air dashes.
- [System] Fixed an issue where the opponent would fall through the ground if they tried to tech recover Byakuren's moves.
- 5y: Hitstun & Blockstun decreased by 3f, recovery frames increased by 1f.
- 5z: Air hit velocities adjusted.
- Throw: No longer turns to face p2 on startup.
- Chant: Can now be performed in midair.
- Chant: Can now still be used even after Byakuren charges the maximum number of orbs.
- Virupaska's Eye: Startup increased (5/9/12->10/14/18), Active frames decreased (4f->2f), Horizontal range decreased.
- Virupaska's Eye: Damage decreased (120/130/140->30/40/50), hit velocites decreased, now stuns grounded opponents on hit.
- Virupaska's Eye: Power gains decreased (45/120/60 -> 30/80/40).
- Virupaska's Eye: Startup invincibility removed on non-Guard Cancel versions.
- Virupaska's Eye: Can now be used in the air.
- Virupaska's Eye [Ground X & Y ver]: Now has partial upper body invulnerability.
- Vidudahka's Sword: Is now air usable.
- Durga's Soul: Now causes a wallbounce.
- Skanda's Leg: Corrected bug that prevented move from being cancellable into Spellcards.
- "Sakra Devanam Indra's Thunderstorm": Fixed an issue where the move only required a minimum of 1000 Power to activate.

=====================================
12/21/19 - Version 2019.12.21
=====================================

- [System] Reset landing now grants opponents increased full invulnerability (2f->3f) and 7f extra grab invulnerability.
- [System] Opponents will now always go into the air recovery anim at the same time as the reset state.
- [System] Fixed various timing issues pertaining to Spellcard effects.
- [System] Added numerous state numbers that were missing from the tick fix code.
- [System] Juggle system now functions independently of M.U.G.E.N's default juggle system.

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

- j.2y: Added missing hitdef triggers.

=====================================
05/19/19 - Version 2019.05.19
=====================================

- Regular hurtbox sized decreased.
- [System] Corrected regular jump landing time (6f->4f).
- [System] Air dashes now have a height restriction when ascending.
- [System] Fixed numerous debug errors that would occur if P2 was somehow missing.
- 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: No longer loses overhead properties when chained into.
- 2y: Changed voice clip.
- Dance of Hanuman (1st and 2nd hits): Changed to soft knockdowns to mirror the third hit.
- Durga's Soul (counterattack): Changed to a hard knockdown to mirror its non-counterattack counterpart.
- "Brilliance of Mahavairocana": Fixed IKEMEN exclusive visual issue where certain effect helpers would incorrectly generate a shadow.

=====================================
03/18/19 - Version 2019.03.18
=====================================

- [System] Corrected certain behaviors when attacking out of a dash.

=====================================
03/12/19 - Version 2019.03.12
=====================================

- [System] Adjustments to common state animations and hurtboxes.
- [System] Updated Recovery frame flags to current standards.
- [System] Updated Hitdef triggers to current standards.
- [System] Groundbounces & Wallbounces no longer allow opponents to quick getup upon landing.
- Throw: Now applies 90% normal proration.
- Dance of Hanuman (3rd hit): Fixed hitdef trigger bug which prevented the hitbox's first active frame from making contact with an opponent. 
- Guard Cancel Counter: No longer gains counterhit bonuses. 

=====================================
02/01/19 - Version 2019.02.01
=====================================

- Sword of Vidudhaka: Corrected missing sound effects.
- "Brilliance of Mahavairocana": Fixed issue where opponent could recover prematurely.
- "Angrias' Knowledge": Total damage increased (395->445).
- "Sakra Devanam Indra's Thunderstorm": Damage increased (60xN->62xN), fixed bug where projectiles would disappear prematurely if used in a corner.

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

- [System] Fixed bug involving OTGs.

=====================================
09/21/18 - Version 2018.09.21
=====================================

- Fixed a minor issue with reset.
- Durga's Soul: Now causes a hard knockdown.
- "Sorcerer's Sutra Scroll": Fixed bug where, on KO, Byakuren would start the next round with 5 orbs.
- "Sakra Devanam Indra's Thunderstorm": Damage increased (57xN->60xN), orbs now activate from front to back.

=====================================
08/19/18 - Version 2018.08.19
=====================================

- j2y: Landing recovery decreased by 6f. Hit velocities reduced.

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

- Fixed counterhit related bugs.

=====================================
05/20/18 - Version 2018.05.20
=====================================

- Fixed additional bugs in reset system.

=====================================
04/21/18 - Version 2018.04.21
=====================================

- Adjusted dash cancel timings.
- Corrected guarding behavior in regards to crossups.
- Adjustments to reset behavior.
- Adjustments to invulnerability on Guard Cancel.
- j2y: No longer autocorrects.

=====================================
02/17/18 - Version 2018.02.17
=====================================

- Adjusted appearance of skill orbs.
- Adjusted Dash timings.
- Adjustments to several sounds.
- Adjustments to some hit velocities on specials.
- j2y: Startup decreased by 4f.
- Chant: Charge speed increased by 10%.
- Durga's Soul: Fixed bugs involving armor state.
- Durga's Soul: Startup time decreased by 7f.
- "Master of Buddhist Cosmology": Hitbox size increased, projectile velocity increased.
- Superhuman "Byakuren Hijiri":
--  Renamed Relic "Sorcerer's Sutra Scroll".
--  Command changed to D,D,D + x/y/z (222x/y/z)
--  Now costs 1000 Power, is no longer a selectable Last Word.
--  No longer provides 50% Walk speed increase.
--  Damage increase on affected Specials decreased (125%->110%).
--  Duration is now dependent on number of Skill Orbs when used (min 2 sec, max 10 sec).
--  Now has 7f recovery after superpause.
--  Fixed graphical bug in IKEMEN.
- New Last Word: "Sakra Devanam Indra's Thunderstorm".

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

- Throw: Added safeguard in event opponent is somehow lost.
- "Angiras Knowledge": Now applies additional proration when used in a combo.
- Superhuman "Byakuren Hijiri": Now applies additional proration when used in a combo.

=====================================
11/06/17 - Version 2017.11.06
=====================================

- Timing adjustments to common anims.
- Fixed bug where lose by time over animation would not play.
- Fixed velocity behavior of ground tech.
- Fixed ground bounce behavior.
- Fixed visual glitch on counterhits.
- New mechanic added: Guard Cancel Counter (412x/y/z during blockstun).
- Forward dash: Startup increased by 1f. Invincibility removed.
- Backdash: Startup increased by 5f. Invincibility reworked.
- 5y: Power gains decreased (0/80/40->0/60/30).
- 5y: Fixed visual bug during hitpause.
- 5z: Damage increased (70->80), power gains decreased (0/120/60->0/90/45).
- 5z: Fixed visual bug during hitpause.
- 6z: Power gains decreased (0/60x2/30x2->0/45x2/22x2).
- 6z: Damage decreased (70*40->65*40), proration per hit increased (85%x2->86.5%x2).
- 6z: Fixed minor issue when hitting airborne opponents, hitpause time per hit decreased
- 2y: Damage increased (45->55), power gains decreased (0/80/40->0/60/30).
- 2z: Damage increased (70->80), power gains decreased (0/120/60->0/90/45).
- 2z: Fixed minor visual bugs.
- j5x: Fixed minor visual bugs.
- j5y: Damage increased (50->60), power gains decreased (0/80/40->0/60/30).
- j2y: Proration increased (82.5%x2->86.5%x2).
- j2y: Velocity decreased.
- j5z: Power gains decreased (0/120/60->0/90/45).
- j5z: Proration decreased (85%->80%), fixed visual bug.
- j5z: Startup increased by 2f.
- Throw: Fixed bug where throw would not come out if down was being held.
- Chant: Fixed visual bug.
- Dance of Hanuman: Power gains increased (15/20xN/10xN->15/40xN/20xN).
- Virupaksha's Eye: Power gains increased (45/80/40->45/120/60), proration decreased (85%->80%).
- Vidudahka's Sword: Power gains increased (15/40/20->15/60/30), proration decreased (90%->85%).
- Skanda's Leg: Active frames of each hit increased by 1f.
- Skanda's Leg: Power gains increased (45/20x5/10x5->45/24x5/12x5).
- Skanda's Leg: Proration decreased (96.5%x5->95.5%x5).
- Durga's Soul: Proration decreased (85%->80%).
- "Master of Buddhist Cosmology": Damage on final hit decreased (152->124).
- "Brilliance of Mahavairocana": Now properly applies proration.
- "Brilliance of Mahavairocana": Projectile counter version is now blockable.
- "Angiras Knowledge": Proration decreased (80%->30%), chip damage corrected.

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

- "Master of Buddhist Cosmology": Recovery time reduced by 56f.

=====================================
05/21/17 - Version 2017.05.21
=====================================

- Corrected bug where Damage dampener would apply itself twice to certain attacks in IKEMEN.

=====================================
04/19/17 - Version 2017.04.19
=====================================

- Fixed bug involving graphical display of Spellcard selection.

=====================================
03/25/17 - Version 2017.03.25
=====================================

- "Master of Buddhist Cosmology": Fixed bug where p2 would get stuck infinitely.
- "Master of Buddhist Cosmology": Damage dampening on first hit now a static 70%.
- "Master of Buddhist Cosmology": Chip damage increased.

=====================================
03/11/17 - Version 2017.03.11
=====================================

- Fixed issue with anim 5160.
- Fixed bug where Taunt was not working.
- Fixed airhittime values on some attacks.

=====================================
01/24/17 - Version 2017.01.24
=====================================

Changes from Version 2016.12.10

- Fixed Spellcard selector not showing up when controlled by AI.
- Fixed incorrect spellcard activation sounds.
- Dance of Hanuman [All Versions]: Chip damage increased, damage on 3rd hit increased (60->70).
- Vidudahka's Sword [All Versions]: Damage decreased (80->60), recovery increased by 2f. No longer requires orb charges.
- Vidudahka's Sword [All Versions]: Vajras now recoil on hit or block & can trigger "Brilliance of Mahavairocana".
- Durga's Soul [All Versions]: Damage increased (100->150).
- Skanda's Leg [All Versions]: Damage per hit increased (27x5->29x5).
- "Master of Buddhist Cosmology": Damage on 1st hit increased (30->40).
- "Brilliance of Mahavairocana": Can now trigger from recoiled Vidudahka Swords.


------------------
System Info
------------------

Normals can be chained into any higher strength normal attack. (Ie: X>Y>Z)
Normals can be cancelled into specials or supers.
Specials can be cancelled into supers.

Counterhits cause 25% more damage. Hitstun on Light counterhits increased by +1, all other moves by +3.

Each move also has minimum scale value that cannot go below a certain percent. These values are:

All Normals: 10%
All Specials: 10%
All Lv1 Supers: 10%
All Lv2 Supers: N/A
All Lv3 Supers: 100%


------------------
Movelist
------------------
 
X - Light Attack
Y - Medium Attack
Z - Heavy Attack
A - Dash/Airdash Shortcut
B - y+z Shortcut
C - x+u+z Shortcut
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 cancelled into ground moves, while the aerial version can be cancelled into aerials.

* B,B or B+a (44 or 4a) - Backward Dash [GA]
- The ground version can be cancelled into ground moves, while the aerial version 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) - Scroll Slam [G]
- Byakuren slams her scroll over her opponent's head.

* F+z (6z) - Vajra Thrust [G]
- Byakuren thrusts forward with her single pronged vajra. Hits twice, and can nullify projectiles.

* j.D+y (j.2y) - Downward Thrust [A]
- Byakuren leaps forward, then stabs her vajra directly downward into the ground, causing a shockwave. The
  first hit must be blocked high, and the second hit can OTG.

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

* x+y+z (5xyz) - Chant [GA]
- Byakuren will pull out her sutra scroll, and begin charging light orbs. Holding the buttons will continue charging until
  Byakuren has 5 orbs. These orbs are consumed whenever Byakuren performs a Special.

* B,DB,D + x/y/z (412x, 412y, or 412z) - Guard Cancel [G]
- Requires 1000 Power, can only be done during blockstun. Byakuren counterattacks using Virupaksha's Eye. Does not consume any charges
  on use.

* D,DF,F + x/y/z (236x, 236y, or 236z) - Dance of Hanuman [G]
- Byakuren swings her vajra, producing a blade of energy. Can cancel into itself up to 2 times. 3rd hit will produce knockdown.

* B,D,DB + x/y/z (421x, 421y, or 421z) - Virupaksha's Eye [GA]
- Byakuren produces an aura shockwave around her. All versions nullify projectiles in range, and will dizzy the opponent on hit.
	X version: Low damage, quick startup. High vertical range, short Horizontal range.
	Y version: Medium damage, medium startup, Medium vertical and horizontal range.
	Z version: Most damage, longest startup, Low vertical range, long horizontal range.

* D,DB,B + x/y/z (214x, 214y, or 214z) - Vidudahka's Sword [GA]
- Byakuren tosses her vajra as a spear. Button determines angle of throw. Does not consume an orb charge and will recoil on contact.
	X version: Throw straight forward.
	Y version: Throw 30 degrees upward.
	Z version: Jump and throw 30 degrees downward. Hits OTG.

* B,DB,D,DF,F + x/y/z (41236x, 41236y, or 41236z) - Skanda's Leg [G]
- Byakuren rushes at the opponent at lightning speed, hitting behind her. All versions can cross up the opponent.
	X version: Fast startup, Short distance. Does not knock down on hit.
	Y version: Medium startup, Medium distance. Knocks down on hit.
	Z version: Slow startup, Far distance. Knocks down on hit.

* F,D,DF + x/y/z (623x, 623y, or 623z) - Durga's Soul [G]
- Byakuren stores energy in her body before releasing it in an explosive blast in her palm. Has very long startup time, but Byakuren
  gains 1 hit of armor during the startup frames. Byakuren will immediately go into her active frames if struck by an attack during
  this time.

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

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

* D,DF,F,D,DF,F + x/y/z (236236x, 236236y, or 236236z) - Sky Spell "Master of Buddhist Cosmology" [G]
- Byakuren tosses her vajra as a spear. If the spear makes successful hit on the opponent, Byakuren will follow up with an
  automatic combo.

* D,DB,B,D,DB,B + x/y/z (214214x, 214214y, or 214214z) - Heaven Sign "Brilliance of Mahavairocana" [G]
- Byakuren meditates in place. If struck while meditating, Byakuren will counterattack the opponent. Does not work on throws.
  Countering Projectiles or recoiled vajras will cause slightly less damage.

* D,D,D + x/y/z (222x, 222y, or 222z) - Relic "Sorcerer's Sutra Scroll" [G]
- Byakuren charges herself with energy, unleashing all 5 of her skill charge orbs, which now glow a fierce red. During this time,
  Byakuren's specials will no longer consume charges, and those specials that do consume charges gain a 10% damage increase. Requires
  at least 1 charge to perform, and will reset Byakuren's charges to 0 when the duration ends. Duration is dependent on how many orbs
  Byakuren has when used.

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

Prior to the beginning of the match, Byakuren must select one of two level 3 spellcards for use.

* D,DF,F,D,DF,F + x+y+z (236236xyz) - "Angiras Knowledge" [G]
- Byakuren dashes forward. Upon making contact with the opponent she will continue rushing them, punch them offscreen and then
  fire lasers at her opponent. Second portion of the attack does not occur on whiff or block.

* D,DB,B,D,DB,B + x+y+z (214214xyz) - "Sakra Devanam Indra's Thunderstorm" [G]
- Byakuren launches several spinning vajra into the air that take aim at the opponent before firing. Byakuren is able to move before
  the vajras fire, allowing her to safely approach an opponent. The orbs will disappear if Byakuren is hit during startup, but has
  invulnerability towards the end of the recovery frames.


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

Elecbyte 		- For making MUGEN.
ZUN / Tasofro	      	- For creating the Touhou project
Gomashio		- Sprites
The_None & Vans		- Counter Hit detection
Daniel9999999		- Custom trip State, Additional Palettes
Flawless		- Custom Palette Selector
Erroratu		- Additional Palettes
Darkflare		- Additional Palettes
ShirokinoKaijin		- Additional Palettes
Umezono			- Beta Testing and feedback
DoomBowser		- Additional fixes and feedback