Atrinik Server  4.0
Functions
gods.c File Reference
#include <global.h>
#include <arch.h>

Go to the source code of this file.

Functions

objectfind_god (const char *name)
 
const char * determine_god (object *op)
 

Detailed Description

Handles god related code.

Definition in file gods.c.

Function Documentation

const char* determine_god ( object op)

Determines if op worships a god. Returns the godname if they do or "none" if they have no god. In the case of an NPC, if they have no god, we give them a random one.

Parameters
opObject to get name of.
Returns
God name, "none" if nothing suitable.

Definition at line 62 of file gods.c.

object* find_god ( const char *  name)

Returns pointer to specified god's object through pntr_to_god_obj().

Parameters
nameGod's name.
Returns
Pointer to god's object, NULL if doesn't match any god.

Definition at line 40 of file gods.c.