From 2fad05374f70f21d4af3d147325581bf1047b5be Mon Sep 17 00:00:00 2001 From: zelgadis Date: Thu, 25 Jun 2009 02:29:14 +0000 Subject: First part of the merger of fixed artefacts into unrandom artefacts (further changes will be much smaller). Breaks savefile compatibility, and bumps the major savefile version up to 6. Some changes made to some tiles files, but it hasn't been tested with a tiles build. Overview of changes: * Unrand artefacts are now defined in art-data.txt and is turned into C code via util/art-data.pl. This has the dual advantage of being more readable by humans, and that if the unrand data structure changes then you can just change util/art-data.pl and regenerate the C code rather than having to change some 70 different C structs by hand. * util/art-data.pl automatically updates NO_UNRANDARTS, and also automatically generates an enumeration of all the unrands which are equal to their item.special field. * randart.cc and randart.h have been renamed to artefact.cc and artefact.h, since the files covers all types of artefacts, and the differences between randarts, unrandarts and (former) fixed arts have been minimized since the terms were introduced. Also renamed unrand.h to art-data.h * The brands and resistances of former fixed arts are now handled via artefact properties, but the rest of their special behaviours are still hardcoded. * Unrandarts are now distinguished between normal and "special", with the special ones currently just being identical to the list of the formed fixed arts. Special unrandarts are randomly generated less often than normal unrandarts, can be generated in the Abyss if they've been lost, can't be picked up by monsters, and can't be affected by Tukima's Dance. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10035 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/player.h | 1 + 1 file changed, 1 insertion(+) (limited to 'crawl-ref/source/player.h') diff --git a/crawl-ref/source/player.h b/crawl-ref/source/player.h index 6d83dfe8be..26600a22af 100644 --- a/crawl-ref/source/player.h +++ b/crawl-ref/source/player.h @@ -35,6 +35,7 @@ int get_player_wielded_weapon(void); bool berserk_check_wielded_weapon(void); int player_equip( equipment_type slot, int sub_type, bool calc_unid = true ); int player_equip_ego_type( int slot, int sub_type ); +bool player_equip_unrand( int unrand_index ); int player_damage_type( void ); int player_damage_brand( void ); bool player_can_hit_monster(const monsters *mons); -- cgit v1.2.3-54-g00ecf