Crossfire Server, Trunk
|
#include <stdlib.h>
#include <check.h>
#include <global.h>
#include <sproto.h>
#include <toolkit_common.h>
Go to the source code of this file.
Functions | |
static END_TEST Suite * | bug_suite (void) |
static void | local_check_loaded_object (object *op) |
int | main (void) |
static void | setup (void) |
START_TEST (test_randommaps) | |
static void | teardown (void) |
Variables | |
int | arch_init |
int | artifact_init |
This is the unit tests file for the bug #1727944: The horn of plenty location: http://sourceforge.net/tracker/index.php?func=detail&aid=1727944&group_id=13833&atid=113833.
I did try different combos to generate an empty horn, so far no success...
Definition in file check_1727944.c.
|
static |
Definition at line 419 of file check_1727944.c.
References setup(), and teardown().
Referenced by main().
|
static |
Definition at line 187 of file check_1727944.c.
References add_string(), ALTAR, AMULET, arch_init, ARMOUR, artifact_init, BOOTS, BOW, BRACERS, calc_item_power(), CLOAK, CONVERTER, create_archetype(), create_archetype_by_object_name(), CREATOR, FABS, FIREWALL, FLAG_CONTENT_ON_GEN, FLAG_GENERATOR, FLAG_IS_A_TEMPLATE, FLAG_MONSTER, free_string(), get_archetype_struct(), GIRDLE, GLOVES, HELMET, log_login::ip, IS_WEAPON, llevDebug, llevError, LOG(), MIN_ACTIVE_SPEED, object_can_merge(), object_copy(), object_insert_in_ob(), object_set_flag_inv(), object_update_speed(), give::op, POTION, QUERY_FLAG, RING, ROD, RUNE, SCROLL, set_materialname(), SHIELD, spell_mapping, SPELLBOOK, guildbuy::temp, Ice::tmp, WAND, and WEAPON.
Referenced by START_TEST().
int main | ( | void | ) |
Definition at line 433 of file check_1727944.c.
References bug_suite(), cctk_setdatadir(), and init().
|
static |
Definition at line 40 of file check_1727944.c.
Referenced by bug_suite().
START_TEST | ( | test_randommaps | ) |
Definition at line 343 of file check_1727944.c.
References apply_auto_fix(), arch_to_object(), reputation_trigger_connect::check(), create_archetype(), delete_map(), find_archetype(), find_treasurelist(), is_valid_types_gen::found, generate_artifact(), get_empty_map(), GET_MAP_OB, liv::hp, obj::inv, level, local_check_loaded_object(), disinfect::map, MAP_PLAYER_UNIQUE, object_insert_in_map_at(), RANDOM, obj::randomitems, ready_map_name(), ROD, save_map(), SAVE_MODE_OVERLAY, and obj::stats.
|
static |
Definition at line 44 of file check_1727944.c.
Referenced by bug_suite().
int arch_init |
True if doing arch initialization
Definition at line 22 of file ArchetypeLoader.cpp.
Referenced by ArchetypeLoader::load(), local_check_loaded_object(), and object_update_speed().
int artifact_init |
1 if doing archetypes initialization
Definition at line 20 of file ArtifactLoader.cpp.
Referenced by ArtifactLoader::load(), and local_check_loaded_object().