ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/disease.C
Revision 1.74 - (view) (download) (annotate) - [select for diffs]
Sat Nov 17 23:40:03 2018 UTC (5 years, 5 months ago) by root
Branch: MAIN
CVS Tags: HEAD
Changes since 1.73: +1 -0 lines
Diff to previous 1.73
copyright update 2018

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

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

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

Revision 1.70 - (view) (download) (annotate) - [select for diffs]
Mon Oct 1 01:43:39 2012 UTC (11 years, 7 months ago) by root
Branch: MAIN
Changes since 1.69: +20 -18 lines
Diff to previous 1.69
nekosan 4ever

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

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

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

Revision 1.66 - (view) (download) (annotate) - [select for diffs]
Sun May 2 20:57:53 2010 UTC (14 years ago) by root
Branch: MAIN
CVS Tags: rel-3_0
Changes since 1.65: +2 -1 lines
Diff to previous 1.65
use set_speed to change speed

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

Revision 1.64 - (view) (download) (annotate) - [select for diffs]
Fri Apr 9 02:45:17 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
Changes since 1.63: +4 -4 lines
Diff to previous 1.63
indent

Revision 1.63 - (view) (download) (annotate) - [select for diffs]
Fri Mar 26 01:04:44 2010 UTC (14 years, 1 month ago) by root
Branch: MAIN
Changes since 1.62: +1 -1 lines
Diff to previous 1.62
update copyright for up to 2010

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

Revision 1.61 - (view) (download) (annotate) - [select for diffs]
Sun Feb 7 04:22:33 2010 UTC (14 years, 3 months ago) by root
Branch: MAIN
CVS Tags: rel-2_93
Changes since 1.60: +2 -1 lines
Diff to previous 1.60
*** empty log message ***

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

Revision 1.59 - (view) (download) (annotate) - [select for diffs]
Mon Nov 23 14:09:05 2009 UTC (14 years, 5 months ago) by root
Branch: MAIN
Changes since 1.58: +14 -14 lines
Diff to previous 1.58
*** empty log message ***

Revision 1.58 - (view) (download) (annotate) - [select for diffs]
Mon Nov 23 12:20:28 2009 UTC (14 years, 5 months ago) by elmex
Branch: MAIN
Changes since 1.57: +12 -12 lines
Diff to previous 1.57
code cleanup in move_symptom.

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

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

Revision 1.55 - (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.54: +1 -1 lines
Diff to previous 1.54
make effectively static symbols actually static, part 2

Revision 1.54 - (view) (download) (annotate) - [select for diffs]
Fri Nov 6 12:49:19 2009 UTC (14 years, 6 months ago) by root
Branch: MAIN
Changes since 1.53: +1 -1 lines
Diff to previous 1.53
make effectively static symbols actually static, part 1

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

Revision 1.52 - (view) (download) (annotate) - [select for diffs]
Tue Sep 1 20:56:05 2009 UTC (14 years, 8 months ago) by root
Branch: MAIN
CVS Tags: rel-2_80
Changes since 1.51: +2 -2 lines
Diff to previous 1.51
*** empty log message ***

Revision 1.51 - (view) (download) (annotate) - [select for diffs]
Thu Jan 1 15:43:34 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, rel-2_79
Changes since 1.50: +2 -2 lines
Diff to previous 1.50
eradictae strstr when contains is meant

Revision 1.50 - (view) (download) (annotate) - [select for diffs]
Sun Dec 28 07:38:49 2008 UTC (15 years, 4 months ago) by root
Branch: MAIN
CVS Tags: rel-2_74
Changes since 1.49: +1 -1 lines
Diff to previous 1.49
urgs

Revision 1.49 - (view) (download) (annotate) - [select for diffs]
Sun Dec 28 07:37:55 2008 UTC (15 years, 4 months ago) by root
Branch: MAIN
Changes since 1.48: +174 -191 lines
Diff to previous 1.48
use new iterator for diaeses, clean up code

Revision 1.48 - (view) (download) (annotate) - [select for diffs]
Mon Sep 29 10:32:50 2008 UTC (15 years, 7 months ago) by root
Branch: MAIN
CVS Tags: rel-2_72, rel-2_73
Changes since 1.47: +5 -5 lines
Diff to previous 1.47
destroy (true) => destroy ()

Revision 1.47 - (view) (download) (annotate) - [select for diffs]
Mon Sep 29 10:20:49 2008 UTC (15 years, 7 months ago) by root
Branch: MAIN
Changes since 1.46: +6 -6 lines
Diff to previous 1.46
do the same everywhere else

Revision 1.46 - (view) (download) (annotate) - [select for diffs]
Tue May 6 16:55:26 2008 UTC (16 years ago) by root
Branch: MAIN
CVS Tags: rel-2_54, rel-2_55, rel-2_56, rel-2_6, rel-2_61, rel-2_7, rel-2_71
Changes since 1.45: +1 -1 lines
Diff to previous 1.45
update copyright

Revision 1.45 - (view) (download) (annotate) - [select for diffs]
Sun Nov 25 13:28:07 2007 UTC (16 years, 5 months ago) by root
Branch: MAIN
CVS Tags: rel-2_32, rel-2_4, rel-2_41, rel-2_42, rel-2_43, rel-2_5, rel-2_52, rel-2_53
Changes since 1.44: +2 -2 lines
Diff to previous 1.44
*** empty log message ***

Revision 1.44 - (view) (download) (annotate) - [select for diffs]
Sun Nov 25 13:27:11 2007 UTC (16 years, 5 months ago) by root
Branch: MAIN
Changes since 1.43: +1 -1 lines
Diff to previous 1.43
*** empty log message ***

Revision 1.43 - (view) (download) (annotate) - [select for diffs]
Thu Nov 8 19:43:27 2007 UTC (16 years, 6 months ago) by root
Branch: MAIN
Changes since 1.42: +4 -4 lines
Diff to previous 1.42
update copyrights and other minor stuff to deliantra

Revision 1.42 - (view) (download) (annotate) - [select for diffs]
Tue Aug 28 19:30:12 2007 UTC (16 years, 8 months ago) by root
Branch: MAIN
CVS Tags: rel-2_2, rel-2_3
Changes since 1.41: +14 -9 lines
Diff to previous 1.41
lock map_data in addition to map_load when loading a map, possibly avoids the crash seen today

Revision 1.41 - (view) (download) (annotate) - [select for diffs]
Mon Aug 27 05:10:51 2007 UTC (16 years, 8 months ago) by root
Branch: MAIN
Changes since 1.40: +4 -8 lines
Diff to previous 1.40
fix cure disease giving exp for the wrong skill

Revision 1.40 - (view) (download) (annotate) - [select for diffs]
Fri Aug 24 02:05:14 2007 UTC (16 years, 8 months ago) by root
Branch: MAIN
Changes since 1.39: +3 -0 lines
Diff to previous 1.39
quite obvious, don't infect dms

Revision 1.39 - (view) (download) (annotate) - [select for diffs]
Fri Aug 24 01:41:02 2007 UTC (16 years, 8 months ago) by root
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38
consdierably reduce disease range modifier

Revision 1.38 - (view) (download) (annotate) - [select for diffs]
Fri Aug 24 01:23:29 2007 UTC (16 years, 8 months ago) by root
Branch: MAIN
Changes since 1.37: +0 -1 lines
Diff to previous 1.37
*** empty log message ***

Revision 1.37 - (view) (download) (annotate) - [select for diffs]
Thu Aug 23 18:55:02 2007 UTC (16 years, 8 months ago) by root
Branch: MAIN
Changes since 1.36: +3 -3 lines
Diff to previous 1.36
*** empty log message ***

Revision 1.36 - (view) (download) (annotate) - [select for diffs]
Thu Aug 23 17:56:25 2007 UTC (16 years, 8 months ago) by root
Branch: MAIN
Changes since 1.35: +3 -8 lines
Diff to previous 1.35
indeed i fucked it up again

Revision 1.35 - (view) (download) (annotate) - [select for diffs]
Mon Aug 20 19:13:10 2007 UTC (16 years, 8 months ago) by root
Branch: MAIN
Changes since 1.34: +57 -89 lines
Diff to previous 1.34
- hopefully fix say w.r.t. NDI_REPLY
- rework the disease code a bit.
- set_owene rfater inserting whne throwing or diseasing. these
  are the only cases i know where the owner is set when inserting into
  another object. *cough*

Revision 1.34 - (view) (download) (annotate) - [select for diffs]
Sun Aug 12 07:04:48 2007 UTC (16 years, 9 months ago) by root
Branch: MAIN
Changes since 1.33: +0 -1 lines
Diff to previous 1.33
*** empty log message ***

Revision 1.33 - (view) (download) (annotate) - [select for diffs]
Tue Aug 7 23:40:27 2007 UTC (16 years, 9 months ago) by root
Branch: MAIN
Changes since 1.32: +1 -1 lines
Diff to previous 1.32
doh

Revision 1.32 - (view) (download) (annotate) - [select for diffs]
Tue Aug 7 23:38:13 2007 UTC (16 years, 9 months ago) by root
Branch: MAIN
Changes since 1.31: +1 -2 lines
Diff to previous 1.31
no kidding, but crossfire actually rewards a speed bonus for progressing
diseases.

this makes no sense, so I changed that to reflect what most likely was intended.

(looking at the disease code there might be still more such traps)

Revision 1.31 - (view) (download) (annotate) - [select for diffs]
Tue Aug 7 22:57:57 2007 UTC (16 years, 9 months ago) by root
Branch: MAIN
Changes since 1.30: +1 -1 lines
Diff to previous 1.30
talk is cheap

Revision 1.30 - (view) (download) (annotate) - [select for diffs]
Tue Aug 7 22:13:52 2007 UTC (16 years, 9 months ago) by root
Branch: MAIN
Changes since 1.29: +17 -13 lines
Diff to previous 1.29
increase range of some player-stats, we have the memory and we need the precision

Revision 1.29 - (view) (download) (annotate) - [select for diffs]
Tue Aug 7 21:58:25 2007 UTC (16 years, 9 months ago) by root
Branch: MAIN
Changes since 1.28: +28 -27 lines
Diff to previous 1.28
- lots of clamping on stats
- optimisations/bugfixes in update_stats
- disease progression now uses lots of ad-hoc clamping on various values

Revision 1.28 - (view) (download) (annotate) - [select for diffs]
Tue Jul 10 05:51:38 2007 UTC (16 years, 10 months ago) by root
Branch: MAIN
Changes since 1.27: +1 -1 lines
Diff to previous 1.27
- improve dynbuf implementation further
- save now saves shstrs longer than HUGE_BUF, lets fix any brokenness remaining
  in the server...
- converted most describe_*-functions to dynbuf_text, making them likely
  faster (or maybe slower), while removing any hardcoded length limit.
- memory allocated for static dynbuf's is not being returned ever (at least
  not the initial chunk, maybe fix this?)
- implement framework for predeclared const shstrs for comparison purposes
  (shstrinc.h).
- enabled and enforced new material code.
- implement hack to clean up book titles.
- increases HUGE_BUF to 10240, to be similar to mac network packet size.

Revision 1.27 - (view) (download) (annotate) - [select for diffs]
Sun Jul 1 05:00:19 2007 UTC (16 years, 10 months ago) by root
Branch: MAIN
Changes since 1.26: +10 -11 lines
Diff to previous 1.26
- 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.26 - (view) (download) (annotate) - [select for diffs]
Thu Jun 7 18:58:30 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.25: +1 -1 lines
Diff to previous 1.25
un-insanify

Revision 1.25 - (view) (download) (annotate) - [select for diffs]
Mon May 28 21:28:36 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
Changes since 1.24: +16 -16 lines
Diff to previous 1.24
update copyrights in server/*.C

Revision 1.24 - (view) (download) (annotate) - [select for diffs]
Tue May 22 21:35:26 2007 UTC (16 years, 11 months ago) by root
Branch: MAIN
CVS Tags: rel-2_1
Changes since 1.23: +1 -1 lines
Diff to previous 1.23
*** empty log message ***

Revision 1.23 - (view) (download) (annotate) - [select for diffs]
Mon May 14 21:32:27 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.22: +5 -6 lines
Diff to previous 1.22
breath life into completely broken skill tools

Revision 1.22 - (view) (download) (annotate) - [select for diffs]
Sat May 12 18:38:44 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.21: +17 -22 lines
Diff to previous 1.21
*** empty log message ***

Revision 1.21 - (view) (download) (annotate) - [select for diffs]
Tue May 1 05:48:20 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.20: +10 -10 lines
Diff to previous 1.20
big simplification, still doesn't work, but feels cleaner

Revision 1.20 - (view) (download) (annotate) - [select for diffs]
Sun Apr 29 18:11:21 2007 UTC (17 years ago) by root
Branch: MAIN
Changes since 1.19: +11 -15 lines
Diff to previous 1.19
indent, avoid lots of double<=>float conversions

Revision 1.19 - (view) (download) (annotate) - [select for diffs]
Mon Feb 5 02:07:40 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
CVS Tags: rel-2_0
Changes since 1.18: +5 -5 lines
Diff to previous 1.18
remove many strcmps on shstr, added fast strcmp wrapper that only etsts for inequality

Revision 1.18 - (view) (download) (annotate) - [select for diffs]
Sat Jan 20 22:09:54 2007 UTC (17 years, 3 months ago) by root
Branch: MAIN
Changes since 1.17: +1 -1 lines
Diff to previous 1.17
- 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.17 - (view) (download) (annotate) - [select for diffs]
Mon Jan 15 21:06:20 2007 UTC (17 years, 3 months ago) by pippijn
Branch: MAIN
Changes since 1.16: +22 -22 lines
Diff to previous 1.16
comments

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

Revision 1.15 - (view) (download) (annotate) - [select for diffs]
Wed Jan 3 00:21:36 2007 UTC (17 years, 4 months ago) by pippijn
Branch: MAIN
Changes since 1.14: +4 -4 lines
Diff to previous 1.14
initialised :)

Revision 1.14 - (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.13: +1 -3 lines
Diff to previous 1.13
replace update_ob_speed by ->set_speed

Revision 1.13 - (view) (download) (annotate) - [select for diffs]
Fri Dec 22 16:34:00 2006 UTC (17 years, 4 months ago) by root
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12
- preliminary check in, stuff is rudimentarily working
- moved most of the player creation process into a perl coroutine
- changed internal design of player management to not reuse
  and morph the object in funny ways. should be safer and much
  nicer to handle.
- got rid of some annoying hacks, such as clear()
  (TODO: get rid of player_pod and other stuff now unnecessary?)

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

Revision 1.11 - (view) (download) (annotate) - [select for diffs]
Wed Dec 13 03:28:42 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.10: +4 -4 lines
Diff to previous 1.10
further cleanups and oofication

Revision 1.10 - (view) (download) (annotate) - [select for diffs]
Wed Dec 13 00:42:04 2006 UTC (17 years, 5 months ago) by root
Branch: MAIN
Changes since 1.9: +1 -2 lines
Diff to previous 1.9
added a needed abstraction

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

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

Revision 1.7 - (view) (download) (annotate) - [select for diffs]
Thu Oct 5 16:50:07 2006 UTC (17 years, 7 months ago) by root
Branch: MAIN
Changes since 1.6: +18 -20 lines
Diff to previous 1.6
*** empty log message ***

Revision 1.6 - (view) (download) (annotate) - [select for diffs]
Sat Sep 16 22:24:13 2006 UTC (17 years, 7 months ago) by root
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5
mapstruct => maptile
removed many ytypedefs in favor of structure tags

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

Revision 1.4 - (view) (download) (annotate) - [select for diffs]
Sun Sep 10 15:59:57 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.3: +466 -378 lines
Diff to previous 1.3
indent

Revision 1.3 - (view) (download) (annotate) - [select for diffs]
Sun Sep 3 00:18:42 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.2: +16 -17 lines
Diff to previous 1.2
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.2 - (view) (download) (annotate) - [select for diffs]
Tue Aug 29 08:01:37 2006 UTC (17 years, 8 months ago) by root
Branch: MAIN
Changes since 1.1: +214 -214 lines
Diff to previous 1.1
expand initial tabs to spaces

Revision 1.1 - (view) (download) (annotate) - [select for diffs]
Sun Aug 13 17:16:04 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