|
|
#61 | ||
|
Angband Devteam member
|
Quote:
Quote:
But yes, there's no reason your number line can't use intervals of 0.00001 or whatever.
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila |
||
|
|
|
|
|
#62 |
|
Adept
Join Date: Oct 2009
Posts: 104
![]() |
You dont need a million entries, just have the entries be like
[ (1, The One Ring's ID number), (100000, Lembas wafer's ID) ...] And when you generate the random item number you subtract the allocation value of the first entry, then move on to the next until allocation value > random number. Then you found your item. To speed it up put larger numbers up front. |
|
|
|
|
|
#63 |
|
Knight
|
ID numbers? Eww, how about strings?
__________________
You read the scroll labeled NOBIMUS UPSCOTI... You are surrounded by a stasis field! The tengu tries to teleport, but fails! |
|
|
|
|
|
#64 |
|
Prophet
Join Date: Dec 2009
Posts: 4,756
![]() |
That would be purely on the code side of things, so more likely it would be a reference to the ItemFactory instance that generates that particular item. Rarity specification from the user's perspective would be a part of the item record; it wouldn't be gathered together in any one place.
|
|
|
|
|
|
#65 | |
|
Angband Devteam member
|
Quote:
P.S. Derakon: we've reached the point where this thread no longer displays nicely in the Oook software (it says "More replies below current depth" and requires extra clicks and scrolling) - so please could you start a new thread? Thanks.
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila |
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Angband 3.5-dev | Magnate | Vanilla | 70 | July 2, 2012 16:47 |
| JBand progress log. | PaulBlay | Development | 38 | June 27, 2009 09:19 |
| Hackers triumph over pricing.log beast-file ... | Magnate | Vanilla | 3 | April 22, 2009 23:00 |
| Angband/65 development log | PaulBlay | Development | 0 | April 16, 2009 18:55 |
| Export entire message log to text file | PaulBlay | Vanilla | 2 | February 28, 2009 19:24 |