Skip to content

Commit

Permalink
2.8.15
Browse files Browse the repository at this point in the history
Added __GH_FIX_255_ANONE to fix issues where the tiles for enemies
 	using Animation Style 'None' in 2.55.0 (and possibly in 2.53.1)
	do not have visual bugs.
  • Loading branch information
PlanNineFromOuterSpace committed Apr 18, 2020
1 parent dd1555c commit e804292
Show file tree
Hide file tree
Showing 21 changed files with 59 additions and 21 deletions.
16 changes: 15 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
ghost.zh
Version 2.8.12
Version 2.8.15

2.8.15
( 2020-19-APRIL )
* Added __GH_FIX_255_ANONE to fix issues where the tiles for enemies
* using Animation Style 'None' in 2.55.0 (and possibly in 2.53.1)
* do not have visual bugs.

2.8.14
( 2020-23-MARCH )
* Added some YuuRand-specific fixes.
2.8.13
( 2020-28-JAN )
* Further optimised AutoGHost, plus tabbing/spacing clean-up.
* Optimised int __AutoGhostParseName() and __IsScriptNameChar()

2.8.12
(2020-27-JAN)
Expand Down
2 changes: 1 addition & 1 deletion header/autoGhostReadme.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
ghost.zh
Version 2.8.12
Version 2.8.15

General setup:

Expand Down
5 changes: 4 additions & 1 deletion header/ghost.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.12
// Version 2.8.15
// Use this for 2.53.1, and later versions of ZQuest

// See ghost_zh_docs/index.html for documentation.
Expand Down Expand Up @@ -100,6 +100,9 @@ const int __GH_DEFAULT_IMPRECISION = 2;
// ZC version than 2.50.3 RC1.
const int __GH_CLEAR_FFC_LINK = 0;

// For ZC Versions where Animation Style (None) does not set ->Tile, enable this.
const int __GH_FIX_255_ANONE = 1;

// Set to 1 to make ghost ffcs Ethereal so that they cannot block
// other combo types/flags on the screen.
// Added in 2.8.12. The prior versions did not have this.
Expand Down
5 changes: 4 additions & 1 deletion header/ghostYR.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.7
// Version 2.8.15

// See ghost_zh_docs/index.html for documentation.

Expand Down Expand Up @@ -41,6 +41,9 @@ const int GH_PREFER_GHOST_ZH_SHADOWS = 0; // 0 = No, 1 = Yes
// Top-left corner of a 4x4 block of blank tiles
const int GH_BLANK_TILE = 65456; // Min: 0, Max: 65456

// For ZC Versions where Animation Style (None) does not set ->Tile, enable this.
const int GH_FIX_255_ANONE = 1;

// Invisible combo with no properties set
const int GH_INVISIBLE_COMBO = 1; // Min: 1, Max: 65279

Expand Down
16 changes: 15 additions & 1 deletion header/ghostZHChangelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
ghost.zh
Version 2.8.12
Version 2.8.15

2.8.15
( 2020-19-APRIL )
* Added __GH_FIX_255_ANONE to fix issues where the tiles for enemies
* using Animation Style 'None' in 2.55.0 (and possibly in 2.53.1)
* do not have visual bugs.

2.8.14
( 2020-23-MARCH )
* Added some YuuRand-specific fixes.
2.8.13
( 2020-28-JAN )
* Further optimised AutoGHost, plus tabbing/spacing clean-up.
* Optimised int __AutoGhostParseName() and __IsScriptNameChar()

2.8.12
(2020-27-JAN)
Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_common.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.9
// Version 2.8.15

// Used for DrawGhostFFCs()
const int __GHI_DRAW_COMBO = 0;
Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_deprecated.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.9
// Version 2.8.15

// The functions and constants in this file are provided only for backward
// compatibility. They should not be used in new scripts.
Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_drawing.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.9
// Version 2.8.15

int __ghzhDrawData[1000];

Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_eweapon.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.9
// Version 2.8.15

// Arguments to SetEWeaponMovement()
const int EWM_SINE_WAVE = 1;
Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_eweaponDeath.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.9
// Version 2.8.15

// All the EWeapon death effect functions are in this file.

Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_eweaponMovement.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.12
// Version 2.8.15

// All the EWeapon movement update functions are in this file.

Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_flags.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.9
// Version 2.8.15

// Old flags - 16 bits, can be ORed together
const int GHF_KNOCKBACK = 0000000000000001b;
Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_global.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.12
// Version 2.8.15

void StartGhostZH()
{
Expand Down
6 changes: 5 additions & 1 deletion header/ghost_zh/2.8/ghost2_init.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.10
// Version 2.8.15


void Ghost_Init(ffc this, npc ghost)
Expand Down Expand Up @@ -286,6 +286,10 @@ void __Ghost_InitInternal(ffc this, npc ghost, bool useEnemyPos, int combo, int
else
ghost->Extend=4; // Disables built-in shadows
ghost->OriginalTile=GH_BLANK_TILE;
if ( __GH_FIX_255_ANONE )
{
ghost->OriginalTile=GH_BLANK_TILE;
}
ghost->TileWidth=Ghost_TileWidth;
ghost->TileHeight=Ghost_TileHeight;
ghost->HitWidth=16*Ghost_TileWidth;
Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_modification.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.9
// Version 2.8.15


void Ghost_Transform(ffc this, npc ghost, int combo, int cset, int tileWidth, int tileHeight)
Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_movement.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.9
// Version 2.8.15


void Ghost_MoveXY(float xStep, float yStep, int imprecision)
Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_other.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.10
// Version 2.8.15


int FindSpawnPoint(bool landOK, bool wallsOK, bool waterOK, bool pitsOK)
Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_scripts.zs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.9
// Version 2.8.15

global script GhostZHActiveScript
{
Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_update.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.9
// Version 2.8.15


bool Ghost_Waitframe(ffc this, npc ghost, bool clearOnDeath, bool quitOnDeath)
Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_updateYR.zh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// ghost.zh
// Version 2.8.8
// Version 2.8.15


bool Ghost_Waitframe(ffc this, npc ghost, bool clearOnDeath, bool quitOnDeath)
Expand Down
2 changes: 1 addition & 1 deletion header/ghost_zh/2.8/ghost2_yuurand.zh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Yuurand Functions
//Yuurand Functions v2.8.15

void UpdateGhostZH1_YR()
{
Expand Down

0 comments on commit e804292

Please sign in to comment.