ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/treasure.C
Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Thu Mar 1 12:28:16 2007 UTC (17 years, 2 months ago) by pippijn
Branch: MAIN
CVS Tags: rel-2_0
Changes since 1.38: +1 -2 lines
Diff to previous 1.38
nano-cleanups

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Fri Feb 16 19:43:41 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.37: +80 -66 lines
Diff to previous 1.37
- identified random memory corrutpion bug
- fixed most likely cause for bug above
- rewrote object loader etc. into a simple one-line lookahead
  parser.
- rewrote/cleaned up archetype, treasure, artifact, formula parser.
- some optimisations / cleanups

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Thu Feb 8 03:09:31 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36
Object => object

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Wed Feb 7 02:04:46 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35
rework material code in preparation for nuking object->materials, also add some useful object methods in preparation of the mapspace limiting

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Sat Jan 27 02:19:36 2007 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.34: +23 -19 lines
Diff to previous 1.34
- experimentall.y determine minimum random map size (12)
- harden random map generator by stresstesting
- reduced codesize while increasing readability (RANDOM => rndm)
- fixed a likely unimportant bug in random_roll64
- possibly broke lots of code

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Sat Jan 20 22:09:51 2007 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.33: +7 -5 lines
Diff to previous 1.33
- move util/world.png to server/lib/
  (should go to maps/world.png, but I will not fiddle around with that now)
- compile worldmap to world.pst and install it.
- rename FLAG_NO_SAVE to FLAG_NO_MAP_SAVE
- define FABS to fabs, as intended
- fix all(?) the FABS(int) calls

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Thu Jan 18 19:42:09 2007 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.32: +19 -19 lines
Diff to previous 1.32
just experimenting

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Mon Jan 15 21:06:18 2007 UTC (17 years, 4 months ago) by pippijn
Branch: MAIN
Changes since 1.31: +22 -22 lines
Diff to previous 1.31
comments

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Sat Jan 6 14:42:29 2007 UTC (17 years, 4 months ago) by pippijn
Branch: MAIN
Changes since 1.30: +1 -0 lines
Diff to previous 1.30
added some copyrights

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Wed Jan 3 02:30:51 2007 UTC (17 years, 4 months ago) by elmex
Branch: MAIN
Changes since 1.29: +33 -38 lines
Diff to previous 1.29
implemented proper support for empty treasures, which
sadly occur in empty treasure lists. fixing treasurelists
to have no entries at all would be even more complicated,
but even when this is fixed, the current changes only make the
server more crash robust to bad treasures.
Also removed the 'NONE' specialcase for treasure lists. Developers
should use 'none' instead now.

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Tue Dec 26 20:04:09 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.28: +2 -4 lines
Diff to previous 1.28
- added maptile->insert and object->insert_at methods that might
  make code using it clearer.
- replaced some insert_ob_in_map calls.

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Tue Dec 26 08:54:59 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.27: +1 -1 lines
Diff to previous 1.27
replace update_ob_speed by ->set_speed

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Wed Dec 20 09:14:21 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26
- minor cleanups
- minor optimisations (in_player vs. is_player_inv)
- added P_PLAYER map flag
- some (dead) concept code

Revision 1.26 - (view) (download) (annotate) - [select for diffs]
Thu Dec 14 00:08:52 2006 UTC (17 years, 5 months ago) by elmex
Branch: MAIN
Changes since 1.25: +13 -4 lines
Diff to previous 1.25
fixed some callers of find_treasurelist to handle non existing treasurelists
more gracefully ('gracefully' as in 'do not crash').

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Tue Dec 12 22:37:05 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.24: +3 -1 lines
Diff to previous 1.24
limit difficulty in treasure generation to 1..max_level

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Tue Dec 12 21:39:56 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.23: +6 -11 lines
Diff to previous 1.23
- more ooficiation
- removed now superfluous remove calls

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Tue Dec 12 20:53:02 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.22: +6 -6 lines
Diff to previous 1.22
replace some function- by method-calls

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Sun Dec 10 20:15:57 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.21: +6 -0 lines
Diff to previous 1.21
*** empty log message ***

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Wed Sep 27 00:36:08 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.20: +5 -5 lines
Diff to previous 1.20
* nuke op->contr when players log out, to avoid dereferencing them later :(
* also rename free to destroy
* do not create weird messages when people examine pseudo inventory objects

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Tue Sep 26 17:19:38 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.19: +2 -6 lines
Diff to previous 1.19
realign struct living and make food 32 bit

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Thu Sep 14 22:34:00 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.18: +1 -7 lines
Diff to previous 1.18
indent

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Thu Sep 14 21:16:11 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.17: +6 -6 lines
Diff to previous 1.17
cleanup

Revision 1.17 - (view) (download) (annotate) - [select for diffs]
Tue Sep 12 18:15:34 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.16: +7 -11 lines
Diff to previous 1.16
- introduce shstr_cmp for mass comparisons to shstr and make use of it
- introduce assign utility function to replace strncpy

Revision 1.16 - (view) (download) (annotate) - [select for diffs]
Sun Sep 10 16:00:23 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.15: +692 -674 lines
Diff to previous 1.15
indent

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Sat Sep 9 21:48:28 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.14: +7 -6 lines
Diff to previous 1.14
fix a few ugly pod-constructs on non-pod objects, and a few newly introduced bugs

Revision 1.14 - (view) (download) (annotate) - [select for diffs]
Thu Sep 7 09:37:12 2006 UTC (17 years, 8 months ago) by pippijn
Branch: MAIN
Changes since 1.13: +4 -4 lines
Diff to previous 1.13
Cleaned up code a little.

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Tue Sep 5 17:58:11 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12
*** empty log message ***

Revision 1.12 - (view) (download) (annotate) - [select for diffs]
Mon Sep 4 13:55:54 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.11: +29 -23 lines
Diff to previous 1.11
fix, uhm, bug. da.

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Mon Sep 4 11:07:59 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.10: +2 -3 lines
Diff to previous 1.10
Changes...

- alternative shstr representation, saves code
- use glibs splice memory allocator (seems slower)
- use simpler memory/lifetime management for objects, no recycling

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Sun Sep 3 22:45:55 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.9: +4 -2 lines
Diff to previous 1.9
string scanning (e.g. for patch) is not implemented ATM but should be easy
to add with an alternative constructor for object_thawer.

Rewrote flex scanner to be simpler, faster and more modularised.

Initial speedup: 16%

(ah well)

Revision 1.9 - (view) (download) (annotate) - [select for diffs]
Sun Sep 3 14:33:48 2006 UTC (17 years, 8 months ago) by elmex
Branch: MAIN
Changes since 1.8: +9 -5 lines
Diff to previous 1.8
removed ox/oy, and then added shstr stuff to the recipes in alchemy

Revision 1.8 - (view) (download) (annotate) - [select for diffs]
Sun Sep 3 08:05:39 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.7: +3 -2 lines
Diff to previous 1.7
for some unexplicable reasons, it seems to run after fixing the obvious errors

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Sun Sep 3 00:18:40 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.6: +1270 -1211 lines
Diff to previous 1.6
THIS CODE WILL NOT COMPILE
use the STABLE tag instead.

- major changes in object lifetime and memory management
- replaced manual refcounting by shstr class
- removed quest system
- many optimisations
- major changes

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Thu Aug 31 18:59:23 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5
*** empty log message ***

Revision 1.5 - (view) (download) (annotate) - [select for diffs]
Wed Aug 30 06:06:27 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.4: +6 -12 lines
Diff to previous 1.4
improve thawer interface, implement some monster event support

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Tue Aug 29 08:01:36 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.3: +497 -497 lines
Diff to previous 1.3
expand initial tabs to spaces

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Mon Aug 28 14:05:24 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.2: +6 -6 lines
Diff to previous 1.2
improved,more automatic freezer

Revision 1.2 - (view) (download) (annotate) - [select for diffs]
Sun Aug 27 16:15:11 2006 UTC (17 years, 9 months ago) by root
Branch: MAIN
Changes since 1.1: +4 -2 lines
Diff to previous 1.1
first, untested persistent objetc storage for players and objects, not yte for maps

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Sun Aug 13 17:16:01 2006 UTC (17 years, 9 months ago) by elmex
Branch: MAIN
Made server compile with C++.
Removed cfanim plugin and crossedit.
C++ here we come.

Convenience Links

Links to HEAD: (view) (download) (annotate) Links to rel-2_0: (view) (download) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, select a symbolic revision name using the selection box, or choose 'Use Text Field' and enter a numeric revision.

  Diffs between and
  Type of Diff should be a