From be265d8082d3151edd651e73ee8dcb42ae3b500e Mon Sep 17 00:00:00 2001 From: lalo Date: Mon, 8 Oct 2007 18:30:07 +0000 Subject: [PATCH] documenting the intent of Valkyrie's altar git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@7307 282e977c-c81d-0410-88c4-b93c2d0d6712 --- python/gods/altar_valkyrie.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/python/gods/altar_valkyrie.py b/python/gods/altar_valkyrie.py index 3f4d6a605..eb792c2b3 100644 --- a/python/gods/altar_valkyrie.py +++ b/python/gods/altar_valkyrie.py @@ -1,3 +1,22 @@ +"""Altar of Valkyrie +Followers of Valkyrie don't get any praying spells, because Valkyrie hates magic. +Instead, they gain experience by combat bravery; and the way they prove that is +by bringing the flesh of dead enemies as a sacrifice in Her altar. + +Of course, the script only activates for followers of Valkyrie, and only runs for +sacrifices of type FLESH. + +Then, it can handle each in two ways: + +- Ideally, all items will have Exp stored. In this case, you'll get 1/5 of that + Exp, with a bonus if it's a head or heart. + +- Otherwise, we'll use the Level and resistances to estimate how hard it was to + kill the monster. In fact, I'm not at all certain the algorithm used to + estimate is reasonable at all for higher levels... but then again, I'm not + sure it's still necessary either, so feel free to remove it :-) +""" + import Crossfire, Crossfire_Type as t def accept(description): @@ -18,7 +37,10 @@ if praying and praying.Title == 'Valkyrie': part_factor = 1 if obj.Level < praying.Level / 2: - pl.Write('Valkyrie scorns your pathetic sacrifice!') + if obj.Exp: + pl.Write('Valkyrie grudgingly accepts your pathetic sacrifice!') + else: + pl.Write('Valkyrie scorns your pathetic sacrifice!') elif obj.Level < praying.Level: accept('poor') level_factor = 0.5