Make water dipped into a fountain be identified, so as to prevent infinite alchemy experience from repeated drinking of the water and re-dipping.

Still working out how to prevent the same with smithery on the empty bottle.

git-svn-id: svn://svn.code.sf.net/p/crossfire/code/maps/trunk@21300 282e977c-c81d-0410-88c4-b93c2d0d6712
master
silvernexus 2020-08-22 23:40:52 +00:00
parent 5523e35dad
commit 219e1b9049
2 changed files with 4 additions and 0 deletions

View File

@ -1,3 +1,6 @@
2020-08-22 Daniel Hawkins
* python/commands/dip.py: Make the water identified to avoid infinite identify xp.
2020-08-16 Rick Tanner 2020-08-16 Rick Tanner
* world/world_120_110: Added the world map tile (world_120_110) * world/world_120_110: Added the world map tile (world_120_110)

View File

@ -24,6 +24,7 @@ def dip(pl):
if ob.ArchName == "wbottle_empty": if ob.ArchName == "wbottle_empty":
ob.Quantity -= 1 ob.Quantity -= 1
w = Crossfire.CreateObjectByName("water") w = Crossfire.CreateObjectByName("water")
w.Identified = 1
w.InsertInto(pl) w.InsertInto(pl)
pl.Message("You fill the %s with water from the %s." % (name_before, f.Name)) pl.Message("You fill the %s with water from the %s." % (name_before, f.Name))
else: else: