Added constants for Castle Data manipulation (#3531)
* Fixes #3530. * Added constants for script commands getcastledata and setcastledata. * Adjusted the guardian constants to adjust based on MAX_GUARDIANS define value. * Updated scripts to reflect changes. Thanks to @keitenai, @Atemo, and @Lemongrass3110!
This commit is contained in:
@@ -7338,6 +7338,26 @@
|
||||
export_constant(GUILDSTORAGE_LOG_EMPTY);
|
||||
export_constant(GUILDSTORAGE_LOG_FAILED);
|
||||
|
||||
/* castle data flags */
|
||||
export_constant(CD_NONE);
|
||||
export_constant(CD_GUILD_ID);
|
||||
export_constant(CD_CURRENT_ECONOMY);
|
||||
export_constant(CD_CURRENT_DEFENSE);
|
||||
export_constant(CD_INVESTED_ECONOMY);
|
||||
export_constant(CD_INVESTED_DEFENSE);
|
||||
export_constant(CD_NEXT_TIME);
|
||||
export_constant(CD_PAY_TIME);
|
||||
export_constant(CD_CREATE_TIME);
|
||||
export_constant(CD_ENABLED_KAFRA);
|
||||
for( int i = CD_ENABLED_GUARDIAN00, j = 0; i < CD_MAX; i++, j++ ){
|
||||
char constant[32];
|
||||
|
||||
sprintf( constant, "CD_ENABLED_GUARDIAN%02d", j );
|
||||
|
||||
script_set_constant( constant, i, false, false );
|
||||
}
|
||||
export_constant(CD_MAX);
|
||||
|
||||
#undef export_constant
|
||||
#undef export_constant2
|
||||
#undef export_parameter
|
||||
|
||||
Reference in New Issue
Block a user