Angband
Data Structures | Macros | Enumerations | Functions
obj-randart.h File Reference

Random artifact generation. More...

#include "object.h"
#include "list-randart-properties.h"

Go to the source code of this file.

Data Structures

struct  artifact_set_data
 

Macros

#define MAX_TRIES   200
 
#define BUFLEN   1024
 
#define MIN_NAME_LEN   5
 
#define MAX_NAME_LEN   9
 
#define INHIBIT_STRONG   (one_in_(6))
 Inhibiting factors for large bonus values "HIGH" values use INHIBIT_WEAK "VERYHIGH" values use INHIBIT_STRONG. More...
 
#define INHIBIT_WEAK   (one_in_(2))
 
#define AGGR_POWER   300
 Power rating below which uncursed randarts cannot aggravate (so that aggravate is found only on endgame-quality items or cursed items) More...
 
#define ART_IDX(a, b)   ART_IDX_##a,
 

Enumerations

enum  
 Numerical index values for the different learned probabilities These are to make the code more readable. More...
 

Functions

char * artifact_gen_name (struct artifact *a, const char ***wordlist)
 Use W. More...
 
void do_randart (u32b randart_seed, bool create_file)
 Randomize the artifacts. More...
 

Detailed Description

Random artifact generation.

Copyright (c) 1998 Greg Wooledge, Ben Harrison, Robert Ruhlmann Copyright (c) 2001 Chris Carr, Chris Robertson

This work is free software; you can redistribute it and/or modify it under the terms of either:

a) the GNU General Public License as published by the Free Software Foundation, version 2, or

b) the "Angband licence": This software may be copied and distributed for educational, research, and not for profit purposes provided that this copyright and statement are included in all such copies. Other copyrights may also apply.

Original random artifact generator (randart) by Greg Wooledge. Updated by Chris Carr / Chris Robertson 2001-2010.

Macro Definition Documentation

#define AGGR_POWER   300

Power rating below which uncursed randarts cannot aggravate (so that aggravate is found only on endgame-quality items or cursed items)

Referenced by add_ability_aux(), and try_supercharge().

#define ART_IDX (   a,
 
)    ART_IDX_##a,
#define BUFLEN   1024

Referenced by artifact_gen_name().

#define INHIBIT_STRONG   (one_in_(6))

Inhibiting factors for large bonus values "HIGH" values use INHIBIT_WEAK "VERYHIGH" values use INHIBIT_STRONG.

Referenced by add_to_AC(), add_to_dam(), add_to_hit(), and try_supercharge().

#define INHIBIT_WEAK   (one_in_(2))
#define MAX_NAME_LEN   9

Referenced by artifact_gen_name().

#define MAX_TRIES   200
#define MIN_NAME_LEN   5

Referenced by artifact_gen_name().

Enumeration Type Documentation

anonymous enum

Numerical index values for the different learned probabilities These are to make the code more readable.

Function Documentation

char* artifact_gen_name ( struct artifact a,
const char ***  words 
)
void do_randart ( u32b  randart_seed,
bool  create_file 
)