ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/gods.C
(Generate patch)

Comparing deliantra/server/server/gods.C (file contents):
Revision 1.1 by elmex, Sun Aug 13 17:16:04 2006 UTC vs.
Revision 1.2 by root, Fri Aug 25 17:11:53 2006 UTC

1/* 1/*
2 * static char *rcsid_gods_c = 2 * static char *rcsid_gods_c =
3 * "$Id: gods.C,v 1.1 2006/08/13 17:16:04 elmex Exp $"; 3 * "$Id: gods.C,v 1.2 2006/08/25 17:11:53 root Exp $";
4 */ 4 */
5 5
6/* 6/*
7 CrossFire, A Multiplayer game for X-windows 7 CrossFire, A Multiplayer game for X-windows
8 8
239 * Checks for god changing, divine intervention, and so on. 239 * Checks for god changing, divine intervention, and so on.
240 */ 240 */
241void pray_at_altar(object *pl, object *altar, object *skill) { 241void pray_at_altar(object *pl, object *altar, object *skill) {
242 object *pl_god=find_god(determine_god(pl)); 242 object *pl_god=find_god(determine_god(pl));
243 243
244 /* Lauwenmark: Handle for plugin altar-parying (apply) event */ 244 if (INVOKE_PLAYER (PRAY_ALTAR, pl->contr, ARG_OBJECT (altar), ARG_OBJECT (skill)))
245 if (execute_event(altar, EVENT_APPLY,pl,NULL,NULL,SCRIPT_FIX_ALL)!=0)
246 return; 245 return;
247 246
248 /* If non consecrate altar, don't do anything */ 247 /* If non consecrate altar, don't do anything */
249 if (!altar->other_arch) return; 248 if (!altar->other_arch) return;
250 249
251 /* hmm. what happend depends on pl's current god, level, etc */ 250 /* hmm. what happend depends on pl's current god, level, etc */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines