From 7c9522f35a295f91030c213fc7618f13e6ae0a32 Mon Sep 17 00:00:00 2001 From: ryo_saeba Date: Sun, 1 Aug 2010 09:01:49 +0000 Subject: [PATCH] Improve temple's bells. git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@13540 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/events/clock/bell.py | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/python/events/clock/bell.py b/python/events/clock/bell.py index 2c4fc3dc6..ae6e9b3f0 100644 --- a/python/events/clock/bell.py +++ b/python/events/clock/bell.py @@ -3,6 +3,33 @@ # This script makes players aware of the time, tracking the current time import Crossfire +def ring_scorn(pl): + god = pl.God + if (god == 'Devourers' or god == 'Sorig' or god == 'Ruggilli' or god == 'Gaea' or god == 'Mostrai' or god == 'Lythander'): + pl.Message('You hear the bell of the glorious temple of %s'%god) + elif (god == 'Valriel' or god == 'Gorokh'): + pl.Message('You hear the bell of the glorious church of %s'%god) + else: + pl.Message("You hear the bells of the various temples of Scorn.") + +def ring_darcap(pl): + god = pl.God + if (god == 'Devoureres'): + pl.Message('You hear the glorious bell of St Andreas') + else: + pl.Message("You hear the bell of St Andreas.") + +def ring_navar(pl): + god = pl.God + if (god == 'Gorokh' or god == 'Ruggilli' or god == 'Sorig' or god == 'Valriel'): + pl.Message('You hear the bell of the glorious temple of %s'%god) + elif (god == 'Mostrai'): + pl.Message('You hear the bell of Mostrai\'s glorious cathedral') + elif (god == 'Gaea'): + pl.Message('You hear the bell of Gaea\'s glorious shrine') + else: + pl.Message("You hear the bells of the temples of Navar.") + def ring_bell(): players = Crossfire.GetPlayers() for player in players: @@ -11,11 +38,11 @@ def ring_bell(): if player.Map.Region == None: continue if player.Map.Region.Name == 'scorn': - player.Message("You hear the bells of the various temples of Scorn.") + ring_scorn(player) elif player.Map.Region.Name == 'darcap': - player.Message("You hear the bell of St Andreas.") + ring_darcap(player) elif player.Map.Region.Name == 'navar': - player.Message("You hear the bell of all the temples of Navar.") + ring_navar(player) dict = Crossfire.GetPrivateDictionary() hour = Crossfire.GetTime()[3]