Language: 
To browser these website, it's necessary to store cookies on your computer.
The cookies contain no personal information, they are required for program control.
  the storage of cookies while browsing this website, on Login and Register.

Author Topic:  treasure list  (Read 59 times)

0 Members and 0 Guests are viewing this topic.

Dolfo

« on: 04, December 2022, 11:54:39 »
Pain. I had only made a small rebalance change of quality in our material array in material.c.

But this broke my treasurelist. So normally this means, if you chance the start quality of a material block, or add more materials or change the max ranges in material.c, you need to go in treasurelist and artifacts and must change ALL material_quality and ALL material_range definitions there.  ::)

This is not a developer friendly logic. So i spend the last 4 or 5 days reading and trying to understand treasurelist and treasure.c. I commented code, made a lot of test runs, reordered the logic and improved the logic with two new features.

We can now define range 64 (or higher, it only checks for range>=NROFMATERIALS_REAL) and logic will autoadjust this to highest possible range for this material. Also there is no more need to define material_quality to allow the material_range command.

So a simply
Code: [Select]
material_range 64
without a definition for material_quality, works now and it don't cares anymore, if i adjust qualities or add more materials in material.c.

I must test this more and also check, if this works with artifacts too.

https://github.com/Kamor/Dolfo/blob/main/server/src/server/treasure.c
« Last Edit: 04, December 2022, 12:10:42 by Dolfo »
Don't believe the shit, you hear in mainstream. Believe your own body. Your body is speaking always the true to you. But you need to understand your body. Hear to your body, not to your ego. And when body is calling to you: "Hey something is wrong!" find the reason(s) for that. Man in White don't go for that, they don't want to heal you. They want earn money and sell you medicine, you should take rest of your life. You are not the patient, you are their customer. Never forget this!

Tags:
 

Related Topics

  Subject / Started by Replies Last post
3 Replies
958 Views
Last post 14, September 2006, 00:05:15
by tehill
12 Replies
1710 Views
Last post 05, April 2009, 20:24:19
by zilla
7 Replies
112416 Views
Last post 20, June 2011, 20:22:41
by clobber
0 Replies
4565 Views
Last post 16, June 2011, 11:42:18
by smacky
5 Replies
64034 Views
Last post 16, August 2013, 06:27:43
by B5_Misidian