Move amulet of lifesaving into the artifact defintion system.

This causes a few minor changes to how it is perceived in-game, but is as close to a 1:1 conversion as I could muster.
master
SilverNexus 2023-08-31 18:28:15 -04:00
parent 04d8812c1e
commit 0bfd7ccdc7
4 changed files with 30 additions and 1 deletions

View File

@ -1,3 +1,17 @@
Move amulet of lifesaving into an artifact definition.
This prevents creation of amulet of livesaving of Empowerment
and other such silliness that really shouldn't be done.
The differences that seem irreconcilable at this time are:
- value 20000->20400
- now detects as magic when it did not before
- obscured as a normal amulet until identification
- "(lifesaving)" descriptor text is obscured due to being an artifact
This is a precursor to possibly doing the same to the strange ring.
talisman/amulet_lif.arc
artifacts
treasures.trs
Daniel Hawkins 2023-08-31
New arch: random_converter.
Meant to be used with the addition of pop-up banks in random maps, but may have other uses
as well. Leans toward gold/silver tables, with a small chance of higher denominations.

View File

@ -3214,6 +3214,18 @@ slaying /python/items/finding.py
end
end
#
# Amulet of lifesaving -- specifically spawned in spots in treasurelists.
Allowed all
chance 0
Object lifesaving
face amulet_lif.111
type 39
weight 120
value 34
lifesave 1
item_power 3
end
#
# Containers (the following is hack to get a quiver for bolts also)
# It would be better that it would be possible to define object
# NONE also, and not use the fixed probability.

View File

@ -1,3 +1,5 @@
# Obsolete. Continues to exist only for legacy items.
Object amulet_lifesave
name amulet of lifesaving
name_pl amulets of lifesaving

View File

@ -1178,7 +1178,8 @@ more
arch helmet_of_xrays
chance 5
more
arch amulet_lifesave
arch amulet
artifact lifesaving
chance 5
more
arch elvenboots