diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-08-06 14:23:46 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-08-06 14:23:46 +0000 |
commit | 1395f15a3e6ee7e9b934da41b694c9beef71abda (patch) | |
tree | 688495e0100e9df57d5148faa37b0bb388e4bebd /crawl-ref/source/item_use.cc | |
parent | 3afdb100186370fc412f68727fbfad5c2eff95c6 (diff) | |
download | crawl-ref-1395f15a3e6ee7e9b934da41b694c9beef71abda.tar.gz crawl-ref-1395f15a3e6ee7e9b934da41b694c9beef71abda.zip |
* Note items bought in shops along with their price
* Note donations made to Zin
* Add option autoinscribe_randarts that, if true, autoinscribes
artefacts of its own whenever some new properties become known,
be it by using it or identifying. Also applies to shops.
This is still unfinished and buggy.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6785 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 88fa351ec0..7b6c27254b 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -2779,6 +2779,9 @@ void jewellery_wear_effects(item_def &item) if (item.plus != 0 && !artefact) ident = ID_KNOWN_TYPE; learn_pluses = true; + + if (Options.autoinscribe_randarts && is_random_artefact(item)) + add_autoinscription( item, randart_auto_inscription(item)); break; case RING_DEXTERITY: @@ -2786,6 +2789,9 @@ void jewellery_wear_effects(item_def &item) if (item.plus != 0 && !artefact) ident = ID_KNOWN_TYPE; learn_pluses = true; + + if (Options.autoinscribe_randarts && is_random_artefact(item)) + add_autoinscription( item, randart_auto_inscription(item)); break; case RING_INTELLIGENCE: @@ -2793,6 +2799,9 @@ void jewellery_wear_effects(item_def &item) if (item.plus != 0 && !artefact) ident = ID_KNOWN_TYPE; learn_pluses = true; + + if (Options.autoinscribe_randarts && is_random_artefact(item)) + add_autoinscription( item, randart_auto_inscription(item)); break; case RING_MAGICAL_POWER: |