ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/common/treasure.C
Revision 1.125 - (view) (download) (annotate) - [select for diffs]
Sat Oct 8 21:54:05 2022 UTC (19 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.124: +4 -1 lines
Diff to previous 1.124
*** empty log message ***

Revision 1.124 - (view) (download) (annotate) - [select for diffs]
Sat Dec 1 20:22:12 2018 UTC (5 years, 5 months ago) by root
Branch: MAIN
Changes since 1.123: +1 -1 lines
Diff to previous 1.123
slight cleanup

Revision 1.123 - (view) (download) (annotate) - [select for diffs]
Tue Nov 27 18:50:22 2018 UTC (5 years, 5 months ago) by root
Branch: MAIN
Changes since 1.122: +8 -7 lines
Diff to previous 1.122
*** empty log message ***

Revision 1.122 - (view) (download) (annotate) - [select for diffs]
Sun Nov 18 15:19:48 2018 UTC (5 years, 5 months ago) by root
Branch: MAIN
Changes since 1.121: +3 -0 lines
Diff to previous 1.121
*** empty log message ***

Revision 1.121 - (view) (download) (annotate) - [select for diffs]
Sat Nov 17 23:40:00 2018 UTC (5 years, 5 months ago) by root
Branch: MAIN
Changes since 1.120: +1 -0 lines
Diff to previous 1.120
copyright update 2018

Revision 1.120 - (view) (download) (annotate) - [select for diffs]
Sat Nov 17 23:33:17 2018 UTC (5 years, 5 months ago) by root
Branch: MAIN
Changes since 1.119: +8 -8 lines
Diff to previous 1.119
*** empty log message ***

Revision 1.119 - (view) (download) (annotate) - [select for diffs]
Sun Jan 29 02:47:04 2017 UTC (7 years, 3 months ago) by root
Branch: MAIN
Changes since 1.118: +3 -3 lines
Diff to previous 1.118
remove eol whitespace

Revision 1.118 - (view) (download) (annotate) - [select for diffs]
Fri Nov 18 04:44:13 2016 UTC (7 years, 5 months ago) by root
Branch: MAIN
Changes since 1.117: +3 -1 lines
Diff to previous 1.117
*** empty log message ***

Revision 1.117 - (view) (download) (annotate) - [select for diffs]
Wed Nov 16 23:41:59 2016 UTC (7 years, 5 months ago) by root
Branch: MAIN
Changes since 1.116: +1 -1 lines
Diff to previous 1.116
copyright update 2016

Revision 1.116 - (view) (download) (annotate) - [select for diffs]
Mon Oct 29 23:55:52 2012 UTC (11 years, 6 months ago) by root
Branch: MAIN
CVS Tags: rel-3_1
Changes since 1.115: +5 -5 lines
Diff to previous 1.115
trailing space removal

Revision 1.115 - (view) (download) (annotate) - [select for diffs]
Fri Feb 3 02:04:11 2012 UTC (12 years, 3 months ago) by root
Branch: MAIN
Changes since 1.114: +2 -2 lines
Diff to previous 1.114
only load the highscore file once

Revision 1.114 - (view) (download) (annotate) - [select for diffs]
Tue Jan 3 11:25:31 2012 UTC (12 years, 4 months ago) by root
Branch: MAIN
Changes since 1.113: +1 -1 lines
Diff to previous 1.113
update copyrights to 2012

Revision 1.113 - (view) (download) (annotate) - [select for diffs]
Sun May 1 16:58:16 2011 UTC (13 years ago) by root
Branch: MAIN
Changes since 1.112: +2 -2 lines
Diff to previous 1.112
*** empty log message ***

Revision 1.112 - (view) (download) (annotate) - [select for diffs]
Sat Apr 23 04:56:47 2011 UTC (13 years ago) by root
Branch: MAIN
Changes since 1.111: +1 -1 lines
Diff to previous 1.111
update copyright to 2011

Revision 1.111 - (view) (download) (annotate) - [select for diffs]
Sat Apr 16 02:35:53 2011 UTC (13 years, 1 month ago) by root
Branch: MAIN
Changes since 1.110: +1 -1 lines
Diff to previous 1.110
*** empty log message ***

Revision 1.110 - (view) (download) (annotate) - [select for diffs]
Wed May 5 09:42:52 2010 UTC (14 years ago) by elmex
Branch: MAIN
CVS Tags: rel-3_0
Changes since 1.109: +34 -22 lines
Diff to previous 1.109
added shop listing price, and fixed treasure value generation a bit.

Revision 1.109 - (view) (download) (annotate) - [select for diffs]
Sun May 2 20:37:57 2010 UTC (14 years ago) by root
Branch: MAIN
Changes since 1.108: +1 -6 lines
Diff to previous 1.108
indent

Revision 1.108 - (view) (download) (annotate) - [select for diffs]
Wed Apr 28 19:49:50 2010 UTC (14 years ago) by root
Branch: MAIN
Changes since 1.107: +1 -5 lines
Diff to previous 1.107
less MAX_BUF, more object_thawer dir/file convenience

Revision 1.107 - (view) (download) (annotate) - [select for diffs]
Sun Apr 25 07:08:57 2010 UTC (14 years ago) by root
Branch: MAIN
Changes since 1.106: +93 -118 lines
Diff to previous 1.106
indent, ยต-opts, no tmpbuf :)

Revision 1.106 - (view) (download) (annotate) - [select for diffs]
Wed Apr 21 09:30:07 2010 UTC (14 years ago) by elmex
Branch: MAIN
Changes since 1.105: +4 -1 lines
Diff to previous 1.105
rebalanced spell values.

base value for spellbooks have been adjusted greatly too.
also adjusted darcap town2 shops a bit w.r.t. difficulty and shopgreed.

Revision 1.105 - (view) (download) (annotate) - [select for diffs]
Thu Apr 15 04:56:47 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
Changes since 1.104: +1 -1 lines
Diff to previous 1.104
raramraramraram

Revision 1.104 - (view) (download) (annotate) - [select for diffs]
Sun Apr 11 00:34:05 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
Changes since 1.103: +46 -46 lines
Diff to previous 1.103
get rid of QUERY_FLAG/SET_FLAG/CLEAR_FLAG macros that I always hated

Revision 1.103 - (view) (download) (annotate) - [select for diffs]
Sat Apr 10 01:06:21 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
Changes since 1.102: +3 -2 lines
Diff to previous 1.102
*** empty log message ***

Revision 1.102 - (view) (download) (annotate) - [select for diffs]
Wed Apr 7 19:54:45 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
Changes since 1.101: +1 -0 lines
Diff to previous 1.101
use fats destroy, actually required as do_remove slowly becomes too intelligent

Revision 1.101 - (view) (download) (annotate) - [select for diffs]
Fri Mar 26 00:59:20 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
Changes since 1.100: +2 -2 lines
Diff to previous 1.100
remove bogus 2007 copyright that was added wrongly by the script, update to affero license

Revision 1.100 - (view) (download) (annotate) - [select for diffs]
Sat Jan 16 13:41:37 2010 UTC (14 years, 3 months ago) by root
Branch: MAIN
CVS Tags: rel-2_93
Changes since 1.99: +1 -2 lines
Diff to previous 1.99
more utf8 marking

Revision 1.99 - (view) (download) (annotate) - [select for diffs]
Tue Jan 5 12:01:43 2010 UTC (14 years, 4 months ago) by root
Branch: MAIN
Changes since 1.98: +1 -1 lines
Diff to previous 1.98
*** empty log message ***

Revision 1.98 - (view) (download) (annotate) - [select for diffs]
Sun Nov 29 17:41:07 2009 UTC (14 years, 5 months ago) by root
Branch: MAIN
CVS Tags: rel-2_92
Changes since 1.97: +3 -3 lines
Diff to previous 1.97
-instance, some los fiddling

Revision 1.97 - (view) (download) (annotate) - [select for diffs]
Sun Nov 29 10:55:18 2009 UTC (14 years, 5 months ago) by root
Branch: MAIN
Changes since 1.96: +3 -3 lines
Diff to previous 1.96
indent (remove useless use of void)

Revision 1.96 - (view) (download) (annotate) - [select for diffs]
Sun Nov 29 09:41:28 2009 UTC (14 years, 5 months ago) by root
Branch: MAIN
Changes since 1.95: +5 -7 lines
Diff to previous 1.95
speed is positive inside the server

Revision 1.95 - (view) (download) (annotate) - [select for diffs]
Mon Nov 16 22:31:13 2009 UTC (14 years, 5 months ago) by root
Branch: MAIN
Changes since 1.94: +2 -2 lines
Diff to previous 1.94
*** empty log message ***

Revision 1.94 - (view) (download) (annotate) - [select for diffs]
Tue Nov 10 16:29:20 2009 UTC (14 years, 6 months ago) by root
Branch: MAIN
Changes since 1.93: +1 -1 lines
Diff to previous 1.93
*** empty log message ***

Revision 1.93 - (view) (download) (annotate) - [select for diffs]
Tue Nov 10 04:38:45 2009 UTC (14 years, 6 months ago) by root
Branch: MAIN
Changes since 1.92: +3 -3 lines
Diff to previous 1.92
material overhaul

Revision 1.92 - (view) (download) (annotate) - [select for diffs]
Sat Nov 7 18:30:05 2009 UTC (14 years, 6 months ago) by root
Branch: MAIN
Changes since 1.91: +2 -2 lines
Diff to previous 1.91
lots of cleanups

Revision 1.91 - (view) (download) (annotate) - [select for diffs]
Fri Nov 6 13:45:28 2009 UTC (14 years, 6 months ago) by root
Branch: MAIN
CVS Tags: rel-2_90
Changes since 1.90: +0 -16 lines
Diff to previous 1.90
remove or document dead code

Revision 1.90 - (view) (download) (annotate) - [select for diffs]
Fri Nov 6 13:31:47 2009 UTC (14 years, 6 months ago) by root
Branch: MAIN
Changes since 1.89: +0 -15 lines
Diff to previous 1.89
remove or document dead code

Revision 1.89 - (view) (download) (annotate) - [select for diffs]
Fri Nov 6 13:03:34 2009 UTC (14 years, 6 months ago) by root
Branch: MAIN
Changes since 1.88: +11 -13 lines
Diff to previous 1.88
make effectively static symbols actually static, part 2

Revision 1.88 - (view) (download) (annotate) - [select for diffs]
Fri Nov 6 12:27:05 2009 UTC (14 years, 6 months ago) by root
Branch: MAIN
Changes since 1.87: +32 -30 lines
Diff to previous 1.87
remove all protos from include/*proto.h for functions that are effectively static

Revision 1.87 - (view) (download) (annotate) - [select for diffs]
Thu Oct 15 16:00:37 2009 UTC (14 years, 7 months ago) by sf-marcmagus
Branch: MAIN
CVS Tags: rel-2_82
Changes since 1.86: +10 -9 lines
Diff to previous 1.86
Add inscribable arches for other book types.
Use 'container'/weight_limit to define capacity of inscribables in characters.
Add treasures/arches to specify books with/without text.
Scorn and Navar Public Libraries use these so they don't generate inscribables.
Fix bug allowing theft of blank books from libraries.
Fix bug preventing adding an adjective to a book name if the titles are used up.
Change error message on reading empty book to be more clear.
Change error message on failed inscription [too much text] to be more informative.
Looking at an inscribable will tell you what you can do with it/what its capacity is in a hint.
Fix broken debug statements in book generation.

Revision 1.86 - (view) (download) (annotate) - [select for diffs]
Mon Oct 12 14:00:57 2009 UTC (14 years, 7 months ago) by root
Branch: MAIN
CVS Tags: rel-2_81
Changes since 1.85: +7 -6 lines
Diff to previous 1.85
clarify license

Revision 1.85 - (view) (download) (annotate) - [select for diffs]
Tue May 5 04:51:56 2009 UTC (15 years ago) by root
Branch: MAIN
CVS Tags: rel-2_79, rel-2_80
Changes since 1.84: +2 -2 lines
Diff to previous 1.84
adjust los lightness a bit

Revision 1.84 - (view) (download) (annotate) - [select for diffs]
Thu Jan 1 11:41:17 2009 UTC (15 years, 4 months ago) by root
Branch: MAIN
CVS Tags: rel-2_75, rel-2_76, rel-2_77, rel-2_78
Changes since 1.83: +4 -2 lines
Diff to previous 1.83
*** empty log message ***

Revision 1.83 - (view) (download) (annotate) - [select for diffs]
Sun Oct 5 14:16:13 2008 UTC (15 years, 7 months ago) by root
Branch: MAIN
CVS Tags: rel-2_72, rel-2_73, rel-2_74
Changes since 1.82: +2 -0 lines
Diff to previous 1.82
*** empty log message ***

Revision 1.82 - (view) (download) (annotate) - [select for diffs]
Mon Sep 29 10:32:50 2008 UTC (15 years, 7 months ago) by root
Branch: MAIN
Changes since 1.81: +4 -4 lines
Diff to previous 1.81
destroy (true) => destroy ()

Revision 1.81 - (view) (download) (annotate) - [select for diffs]
Mon Sep 29 10:31:32 2008 UTC (15 years, 7 months ago) by root
Branch: MAIN
Changes since 1.80: +1 -1 lines
Diff to previous 1.80
introduce drop_and_destroy and use it

Revision 1.80 - (view) (download) (annotate) - [select for diffs]
Mon Sep 29 09:04:51 2008 UTC (15 years, 7 months ago) by root
Branch: MAIN
Changes since 1.79: +8 -17 lines
Diff to previous 1.79
Replace all destroy calls by destroy (true) (after checking), add
temporary debugging code for lost objects, fix some minor issues in random_maps.

Revision 1.79 - (view) (download) (annotate) - [select for diffs]
Tue Jul 29 02:00:55 2008 UTC (15 years, 9 months ago) by root
Branch: MAIN
CVS Tags: rel-2_61, rel-2_7, rel-2_71
Changes since 1.78: +1 -2 lines
Diff to previous 1.78
4.3

Revision 1.78 - (view) (download) (annotate) - [select for diffs]
Sun Jul 20 16:56:34 2008 UTC (15 years, 9 months ago) by root
Branch: MAIN
CVS Tags: rel-2_6
Changes since 1.77: +3 -0 lines
Diff to previous 1.77
*** empty log message ***

Revision 1.77 - (view) (download) (annotate) - [select for diffs]
Mon May 5 22:18:00 2008 UTC (16 years ago) by root
Branch: MAIN
CVS Tags: rel-2_54, rel-2_55, rel-2_56
Changes since 1.76: +1 -1 lines
Diff to previous 1.76
*** empty log message ***

Revision 1.76 - (view) (download) (annotate) - [select for diffs]
Mon May 5 22:17:43 2008 UTC (16 years ago) by root
Branch: MAIN
Changes since 1.75: +1 -1 lines
Diff to previous 1.75
*** empty log message ***

Revision 1.75 - (view) (download) (annotate) - [select for diffs]
Tue Apr 22 07:01:46 2008 UTC (16 years ago) by root
Branch: MAIN
CVS Tags: rel-2_52, rel-2_53
Changes since 1.74: +0 -4 lines
Diff to previous 1.74
see Changes

Revision 1.74 - (view) (download) (annotate) - [select for diffs]
Mon Apr 21 23:35:24 2008 UTC (16 years ago) by root
Branch: MAIN
Changes since 1.73: +0 -1 lines
Diff to previous 1.73
- fix weight/pickup bugs, visible_to
- do more automatic nrof/weight updates
- kill funcpoint.h

Revision 1.73 - (view) (download) (annotate) - [select for diffs]
Sun Apr 20 05:24:55 2008 UTC (16 years ago) by root
Branch: MAIN
Changes since 1.72: +2 -1 lines
Diff to previous 1.72
- implement archetype gc
- implement "proper" refcounting for arches
- serialise resource file loads
- implement memory poisoning
- minor cleanups

Revision 1.72 - (view) (download) (annotate) - [select for diffs]
Sun Apr 20 00:44:12 2008 UTC (16 years ago) by root
Branch: MAIN
Changes since 1.71: +21 -12 lines
Diff to previous 1.71
reloadable archetypes, maybe

Revision 1.71 - (view) (download) (annotate) - [select for diffs]
Tue Apr 15 03:16:02 2008 UTC (16 years, 1 month ago) by root
Branch: MAIN
CVS Tags: rel-2_5
Changes since 1.70: +0 -122 lines
Diff to previous 1.70
better logging, remove cruft

Revision 1.70 - (view) (download) (annotate) - [select for diffs]
Wed Apr 2 11:13:52 2008 UTC (16 years, 1 month ago) by root
Branch: MAIN
CVS Tags: rel-2_43
Changes since 1.69: +1 -1 lines
Diff to previous 1.69
*** empty log message ***

Revision 1.69 - (view) (download) (annotate) - [select for diffs]
Tue Jan 22 15:53:01 2008 UTC (16 years, 3 months ago) by root
Branch: MAIN
CVS Tags: rel-2_41, rel-2_42
Changes since 1.68: +2 -2 lines
Diff to previous 1.68
add some primitive memory debugging

Revision 1.68 - (view) (download) (annotate) - [select for diffs]
Thu Nov 8 19:43:23 2007 UTC (16 years, 6 months ago) by root
Branch: MAIN
CVS Tags: rel-2_32, rel-2_4
Changes since 1.67: +4 -4 lines
Diff to previous 1.67
update copyrights and other minor stuff to deliantra

Revision 1.67 - (view) (download) (annotate) - [select for diffs]
Tue Oct 16 00:30:24 2007 UTC (16 years, 7 months ago) by root
Branch: MAIN
CVS Tags: rel-2_3
Changes since 1.66: +3 -8 lines
Diff to previous 1.66
- implement archetype->instance as replacement for arch_to_object
  (better name?)
- fix arrows merging with stuff on floor
- fix level_for_item to read more clearfly, do not use drand48
  and fix the random level generation when !level set.
- splay arrow container in find_arrow (but searching containers is still borked?)
- improve create_missile spell.

Revision 1.66 - (view) (download) (annotate) - [select for diffs]
Wed Sep 12 11:10:10 2007 UTC (16 years, 8 months ago) by root
Branch: MAIN
Changes since 1.65: +1 -1 lines
Diff to previous 1.65
- rewrite/cleanup ob_blocked a little. its more efficient now, probably
  has less bugs and more bugs.
- get rid of now unused P_NO_PASS.

Revision 1.65 - (view) (download) (annotate) - [select for diffs]
Tue Sep 4 05:43:21 2007 UTC (16 years, 8 months ago) by root
Branch: MAIN
CVS Tags: rel-2_2
Changes since 1.64: +0 -2 lines
Diff to previous 1.64
- implemented ref/deref "framework" that allows one to create
  semipersistent references and dereference them later
  (works only for players right now).
- (partially) expose freezer and thawer to perl.
- thawers now do next() automatically after instantiating.
- allow the thawer to record delayed dereference requests to be
  resolved, well, later (should be a different class actually
  but lets stay realistic).
- use thawers when loading maps and players and resolve delayed
  derefs after loading them before activating them.
- serialise io for no good reason.

Revision 1.64 - (view) (download) (annotate) - [select for diffs]
Sun Jul 1 05:00:18 2007 UTC (16 years, 10 months ago) by root
Branch: MAIN
Changes since 1.63: +11 -12 lines
Diff to previous 1.63
- upgrade crossfire trt to the GPL version 3 (hopefully correctly).
- add a single file covered by the GNU Affero General Public License
  (which is not yet released, so I used the current draft, which is
  legally a bit wavy, but its likely better than nothing as it expresses
  direct intent by the authors, and we can upgrade as soon as it has been
  released).
  * this should ensure availability of source code for the server at least
    and hopefully also archetypes and maps even when modified versions
    are not being distributed, in accordance of section 13 of the agplv3.

Revision 1.63 - (view) (download) (annotate) - [select for diffs]
Mon Jun 4 13:04:00 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.62: +12 -12 lines
Diff to previous 1.62
- archetype is now a subclass of object.
- store archetypes in an object_vector.
- use a different startegy for archetype loading
  (reloading is MOST CERTAINLY broken).

Revision 1.62 - (view) (download) (annotate) - [select for diffs]
Mon Jun 4 12:19:08 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.61: +3 -3 lines
Diff to previous 1.61
rename arch->name to arch->archname for preparation of subclassing object

Revision 1.61 - (view) (download) (annotate) - [select for diffs]
Mon May 28 21:21:40 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.60: +17 -17 lines
Diff to previous 1.60
update copyrights in common/*.C and util/*.C

Revision 1.60 - (view) (download) (annotate) - [select for diffs]
Sat May 12 18:14:47 2007 UTC (17 years ago) by root
Branch: MAIN
CVS Tags: rel-2_1
Changes since 1.59: +2 -2 lines
Diff to previous 1.59
- unrelated change, replace get_attr_value/set_attr_value by a nicer to use
  stat member function. should really replace the struct values by an array.

Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Sun Apr 29 00:19:16 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.58: +7 -1 lines
Diff to previous 1.58
do not generate floor treasure when there already is somehting on this spot. maybe treasure_env and is_floor should be unified

Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Sat Apr 28 17:51:57 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.57: +3 -2 lines
Diff to previous 1.57
implement two new flags and associated gadgets:

- FLAG_PRECIOUS: used to mark precious pet monsters. semantics
  are not fleshed out yet, but destroy_pets floors leave them be.
  ideas: save them to the player file, do not kill with killpets
  (but only with killpets all), try harder when following player on other
  maps.

- FLAG_TREASURE_ENV: put treasure into the environment instead of
  into the object, useful for terrain types on the worldmap.
  - bumped chance field in treasures to 16 bit (ideally float).

Revision 1.57 - (view) (download) (annotate) - [select for diffs]
Tue Apr 24 00:42:02 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.56: +6 -0 lines
Diff to previous 1.56
- implement a rudimentary framework for a "msg" command that
  replaces drawinfo and drawextinfo and allows for simpler usage
  in simple cases and extensibility for the less complex uses.
- moved the character race choosing logic into perl, making use
  of the new msg command if the client supports it.

Revision 1.56 - (view) (download) (annotate) - [select for diffs]
Sat Apr 21 22:12:59 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.55: +13 -6 lines
Diff to previous 1.55
*** empty log message ***

Revision 1.55 - (view) (download) (annotate) - [select for diffs]
Sat Apr 21 22:05:52 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.54: +1 -1 lines
Diff to previous 1.54
*** empty log message ***

Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Sat Apr 21 17:34:23 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.53: +0 -1 lines
Diff to previous 1.53
slight revert, and more fixes

Revision 1.53 - (view) (download) (annotate) - [select for diffs]
Sat Apr 21 16:56:30 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.52: +3 -0 lines
Diff to previous 1.52
having a) monsters as treasures b) multipart monsters as treasures
and c) multipart monsters as terasures on tiled maps... hit a big
pile of bugs again.

this change:

- implements a per-map active flag. when items are being inserted
  they are activated or deactivated according to that flag.
  this could get rid of most or even all of the explicit
  activate/deactivate calls.
- implement some glue to make instantiating multipart objects easier
  (this is used inside fix_multipart_objects and might make it possible
  to put multipart objects at map borders - those were winged before)
- do finer-grained locking as to not lead to deadlocks when insert
  recurses e.g. when loading tiled maps.

Revision 1.52 - (view) (download) (annotate) - [select for diffs]
Thu Apr 19 19:24:25 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.51: +4 -2 lines
Diff to previous 1.51
set the name on generated archetypes to void obvious crashes - should check for a special 'defined' flag in addition after loading

Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Thu Apr 19 16:36:00 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.50: +10 -6 lines
Diff to previous 1.50
do not put treasure where it should not normally be

Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Thu Apr 19 16:23:46 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.49: +5 -12 lines
Diff to previous 1.49
- implement "random encounters" by simply populating the
  worldmap randomly by region.
- allow treasurelists to silently forward-reference archetypes
  (should have an extra checkign path for never-defined archetypes)
- fix GT_ENVIRONMENT, which had the semantics of putting treasure
  items _and_ their inventory on the floor, now only puts the
  items themselves on the floor.
- remove warning about generated inventory - some items simply
  can come with an empty inventory.
- do some other minor improvements.

Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Tue Apr 17 18:59:05 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.48: +2 -0 lines
Diff to previous 1.48
parse_kv now behaves like other parse functions

Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Tue Apr 17 18:40:31 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.47: +0 -22 lines
Diff to previous 1.47
- load_resource_file cna now load archetypes, regions and treasures
  freely intermingled. archetypes and treasures makes a lot of actual
  sense, too.

(this has not been tested, but unlikely not to work :)

Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Tue Apr 17 18:24:30 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.46: +60 -105 lines
Diff to previous 1.46
- treasurelists and regions can now be freely mixed within the same
  generic resource file. more to come.

Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Tue Apr 17 10:06:32 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.45: +1 -1 lines
Diff to previous 1.45
cede less often in background tasks while still reducing jittering

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Mon Apr 16 15:41:26 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.44: +1 -1 lines
Diff to previous 1.44
replace AUTODECL by auto. this is the first time in my life, I think, that I redefined a keyword - fortunately only with arguments

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Mon Apr 16 15:36:22 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.43: +3 -2 lines
Diff to previous 1.43
yeah, i am so lame, non-perfect code :(

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Mon Apr 16 11:09:30 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.42: +1 -4 lines
Diff to previous 1.42
load archetypes and treasures from perl, make terasures reloadable

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Mon Apr 16 10:14:25 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.41: +132 -129 lines
Diff to previous 1.41
- rewrite treasure parser to new framework just for fun.
- actually call load_treasures again.
- fix bugs.

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Mon Apr 16 06:23:40 2007 UTC (17 years, 1 month ago) by root
Branch: MAIN
Changes since 1.40: +115 -133 lines
Diff to previous 1.40
VERY EXPERIMENTAL

- change the way archetypes and treasurelists are being loaded:
  - referring to a nonexisting treasurelist will create an empty one
  - referring to a nonexisting archetype will create an empty one
  - archetypes/treasurelists will overwrite any existing object
    of the same name.

- net effect should be to allow reloading of archetypes and treasurelists
  at runtime at a later stage.

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Wed Mar 14 00:04:58 2007 UTC (17 years, 2 months ago) by root
Branch: MAIN
Changes since 1.39: +4 -4 lines
Diff to previous 1.39
- rewrote smooth face handling, as a side-effect, smoothing seems to work
  again and smooth faces can be reloaded.
- the server now sends the full animation for an object the first time
  it is seen, this uses slightly more bandwidth initially, but avoids
  the flickering for objects change their face later.

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, 2 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, 3 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, 3 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, 3 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, 4 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, 4 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, 4 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, 7 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, 7 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, 8 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)

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