|
From: Crossfire C. r. messages.
<cro...@li...> - 2011-06-29 17:32:55
|
Revision: 14735
http://crossfire.svn.sourceforge.net/crossfire/?rev=14735&view=rev
Author: ryo_saeba
Date: 2011-06-29 17:32:48 +0000 (Wed, 29 Jun 2011)
Log Message:
-----------
Remove unused material fields.
Modified Paths:
--------------
server/trunk/include/material.h
server/trunk/lib/materials
server/trunk/server/init.c
Modified: server/trunk/include/material.h
===================================================================
--- server/trunk/include/material.h 2011-06-29 17:18:42 UTC (rev 14734)
+++ server/trunk/include/material.h 2011-06-29 17:32:48 UTC (rev 14735)
@@ -65,15 +65,6 @@
int material;
sint8 save[NROFATTACKS];
sint8 mod[NROFATTACKS];
- sint8 chance;
- sint8 difficulty;
- sint8 magic;
- sint8 damage;
- sint8 wc;
- sint8 ac;
- sint8 sp;
- int weight;
- int value;
struct _materialtype *next;
} materialtype_t;
Modified: server/trunk/lib/materials
===================================================================
--- server/trunk/lib/materials 2011-06-29 17:18:42 UTC (rev 14734)
+++ server/trunk/lib/materials 2011-06-29 17:32:48 UTC (rev 14735)
@@ -4,14 +4,6 @@
# material the material type this corresponds to. see materials.h
# saves savingthrows for each of the 25 attacktypes
# mods modifications to resistances for the 25 atttypes.
-# chance chance for appearance. similar to artifact gen.
-# diff difficulty, similar to artifact generation.
-# magic minimum magic. 0 can be on anything. similar to artifacts
-# damage bonus/negative to damage
-# wc bonus/negative to wc
-# ac bonus/negative to ac
-# weight weight modifer. similar to artifacts
-# value value modifier. similar to artifacts.
# anything left unspecified in this file will default to zero.
#
# NOTE
@@ -24,162 +16,60 @@
material 1
saves 15,10,17,9,5,7,13,0,20,15,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0
mods 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-chance 100
-diff 0
-magic 0
-damage 0
-wc 0
-ac 0
-weight 100
-value 100
name iron
material 2
saves 2,12,3,12,2,10,7,0,20,15,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0
mods 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
chance 100
-diff 0
-magic 0
-damage 0
-wc 0
-ac 0
-weight 100
-value 100
name glass
material 4
saves 14,11,8,3,10,5,1,0,20,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
mods 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-chance 100
-diff 0
-magic 0
-damage 0
-wc 0
-ac 0
-weight 100
-value 100
name leather
material 8
saves 5,10,10, 3, 3,10,10, 0,20,15, 0,0,0,0,0,12,0,0,0,0,0,0,0,0,0
mods 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-chance 100
-diff 0
-magic 0
-damage 0
-wc 0
-ac 0
-weight 100
-value 100
name pine
material 16
saves 10,11,13, 2, 2,10, 9, 0,20,15, 0,0,0,0,0,12,0,0,0,0,0,0,0,0,0
mods 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-chance 100
-diff 0
-magic 0
-damage 0
-wc 0
-ac 0
-weight 100
-value 100
name organics
description organic
material 32
saves 3,12,9,11,3,10,9,0,20,15,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
mods 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-chance 100
-diff 0
-magic 0
-damage 0
-wc 0
-ac 0
-weight 100
-value 100
name granite
material 64
saves 2,5,2,2,2,2,1,0,20,15,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0
mods 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-chance 100
-diff 0
-magic 0
-damage 0
-wc 0
-ac 0
-weight 100
-value 100
name cloth
description cotton
material 128
saves 14,11,13,4,4,5,10,0,20,15,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0
mods 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-chance 100
-diff 0
-magic 0
-damage 0
-wc 0
-ac 0
-weight 100
-value 100
name adamant
material 256
saves 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
mods 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-chance 100
-diff 0
-magic 0
-damage 0
-wc 0
-ac 0
-weight 100
-value 100
name liquid
material 512
saves 0,8,9,6,17,0,15,0,20,15,12,0,0,0,0,11,0,0,0,0,0,0,0,0,0
mods 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-chance 100
-diff 0
-magic 0
-damage 0
-wc 0
-ac 0
-weight 100
-value 100
name tin
material 1024
saves 6,12,6,14,2,10,1,0,20,15,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0
mods 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-chance 100
-diff 0
-magic 0
-damage 0
-wc 0
-ac 0
-weight 100
-value 100
name bone
material 2048
saves 10,9,4,5,3,10,10,0,20,15,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0
mods 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-chance 100
-diff 0
-magic 0
-damage 0
-wc 0
-ac 0
-weight 100
-value 100
name ice
material 4096
saves 14,11,16,5,0,5,6,0,20,15,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0
mods 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
-chance 100
-diff 0
-magic 0
-damage 0
-wc 0
-ac 0
-weight 100
-value 100
#
# NEW NON BASIC TYPES START HERE
+# Those are unused from 2011/06/29 on, left in case someone feels like using that.
#
# BEGIN iron
name gold
Modified: server/trunk/server/init.c
===================================================================
--- server/trunk/server/init.c 2011-06-29 17:18:42 UTC (rev 14734)
+++ server/trunk/server/init.c 2011-06-29 17:32:48 UTC (rev 14735)
@@ -365,15 +365,6 @@
mt->save[i] = 0;
mt->mod[i] = 0;
}
- mt->chance = 0;
- mt->difficulty = 0;
- mt->magic = 0;
- mt->damage = 0;
- mt->wc = 0;
- mt->ac = 0;
- mt->sp = 0;
- mt->weight = 100;
- mt->value = 100;
mt->next = NULL;
return mt;
}
@@ -446,24 +437,6 @@
mt->mod[i] = (sint8)value;
cp = next;
}
- } else if (sscanf(cp, "chance %d\n", &value)) {
- mt->chance = (sint8)value;
- } else if (sscanf(cp, "diff %d\n", &value)) {
- mt->difficulty = (sint8)value;
- } else if (sscanf(cp, "magic %d\n", &value)) {
- mt->magic = (sint8)value;
- } else if (sscanf(cp, "damage %d\n", &value)) {
- mt->damage = (sint8)value;
- } else if (sscanf(cp, "wc %d\n", &value)) {
- mt->wc = (sint8)value;
- } else if (sscanf(cp, "ac %d\n", &value)) {
- mt->ac = (sint8)value;
- } else if (sscanf(cp, "sp %d\n", &value)) {
- mt->sp = (sint8)value;
- } else if (sscanf(cp, "weight %d\n", &value)) {
- mt->weight = value;
- } else if (sscanf(cp, "value %d\n", &value)) {
- mt->value = value;
}
}
free(mt->next);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|