diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-20 12:12:19 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-04-20 12:12:19 +0000 |
commit | 30a70203bafbec37e9720b511d51d5a4144d9fa9 (patch) | |
tree | 83e30012568ae6de7f0a6da400bfec6fc35ed4ca /crawl-ref/source/unrand.h | |
parent | 1326ea6a6d343513430861c1ef9a04bfd61dd6a4 (diff) | |
download | crawl-ref-30a70203bafbec37e9720b511d51d5a4144d9fa9.tar.gz crawl-ref-30a70203bafbec37e9720b511d51d5a4144d9fa9.zip |
Change recursing to work similarly as was suggested by {bdr} - Brent?
The curses property now may take any range of numbers, rather than
plain 0 or 1. If its value is different from 0, the randart is created
cursed. For positive values, it may additionally recurse itself with
1/value probability. In this case, add a description line ("It may
recurse itself.") and an auto-inscription ("Curse", comes last).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4406 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/unrand.h')
-rw-r--r-- | crawl-ref/source/unrand.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/crawl-ref/source/unrand.h b/crawl-ref/source/unrand.h index 87154be150..e5d80e92b3 100644 --- a/crawl-ref/source/unrand.h +++ b/crawl-ref/source/unrand.h @@ -98,9 +98,10 @@ +/- to-hit/to-dam: Obvious. Affects both melee and missile. Should be left at 0 for weapons, which get +s normally. - cursed: 0 or 1. Sets the item's initial curse status. Cursed items - will tend to recurse themselves when rewielded. Maybe this should be - made to be a value that determines how often it will recurse? -- bwr + cursed: -1, 0, any positive value. + Setting this to any value other than 0 will set the item's initial curse + status as cursed. If the value is greater than zero, the item will also have + one_chance_in(value) of recursing itself when re-equipped. stealth: -100 to 80. Adds to stealth value. @@ -226,7 +227,7 @@ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 1, 0 // cursed + 3, 0 // cursed } , "", @@ -476,7 +477,7 @@ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 1, 0 // cursed + -1, 0 // cursed } , "", @@ -623,7 +624,7 @@ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, // prevent spellcasting 0, 0, 0, 0, 0, - 1, 0 // cursed + -1, 0 // cursed } , "", @@ -749,7 +750,7 @@ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, // prevent spellcasting 0, 0, 0, 0, 0, - 1, 0 // cursed + 2, 0 // cursed } , "", @@ -839,7 +840,7 @@ 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, // prevent spellcasting, prevent teleport 0, 0, 0, 0, 0, - 1, 0 // cursed + -1, 0 // cursed } , "", |