x.generator.artifact.c

Item Generator/x.generator.artifact.c · 593 B

From the archive item_generator.zip

Download the archive   « Back to the archive contents

/*
 *	Item generator 2, a simpler approch to the creation system
 */

#if defined(macintosh)
#include <types.h>
#else
#include <sys/types.h>
#endif
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include "merc.h"
#include "interp.h"
#include "magic.h"
#include "recycle.h"
#include "tables.h"

OBJ_DATA *
gen_artifact (OBJ_DATA * obj, int level)
{
	int ring_type = number_range(1, 1);
//	char name_set[MSL];
//	char shor_set[MSL];
//	char long_set[MSL];

	switch(ring_type)
	{	default:
		case 1:
		obj = create_object (get_obj_index (930), 0);
	}

	return(obj);
}

Site Stats

Snippets: 1791
Codebases: 571