combat.c-Dateireferenz
#include <combat.h>
gehe zum Quellcode dieser Datei
Dokumentation der Funktionen
| int default_weapon_class |
( |
string |
type |
) |
|
Definiert in Zeile 19 der Datei combat.c.
00019 {
00020 switch(type) {
00021 case "knife":
00022 return 50;
00023 case "club":
00024 return 70;
00025 case "sword":
00026 return 100;
00027 case "axe":
00028 return 90;
00029 }
00030 return 30;
00031 }
| int default_weapon_value |
( |
string |
type |
) |
|
Definiert in Zeile 47 der Datei combat.c.
00047 {
00048 switch(type) {
00049 case "knife":
00050 return 10;
00051 case "club":
00052 return 50;
00053 case "sword":
00054 return 500;
00055 case "axe":
00056 return 300;
00057 }
00058 return(0);
00059 }
| int default_weapon_weight |
( |
string |
type |
) |
|
Definiert in Zeile 33 der Datei combat.c.
00033 {
00034 switch(type) {
00035 case "knife":
00036 return 100;
00037 case "club":
00038 return 1500;
00039 case "sword":
00040 return 2000;
00041 case "axe":
00042 return 1500;
00043 }
00044 return 1000;
00045 }
| int query_prevent_shadow |
( |
|
) |
|
| int valid_armour_type |
( |
mixed |
t |
) |
|
Definiert in Zeile 74 der Datei combat.c.
Benutzt log_file und VALID_ARMOUR_TYPE.
00074 {
00075 if (VALID_ARMOUR_TYPE(t)) {
00076 return 1;
00077 }
00078 else {
00079 log_file("COMBAT","Invalid armour type: "+t+", object: "+
00080 object_name(previous_object())+"\n");
00081 return 0;
00082 }
00083 }
| int valid_weapon_type |
( |
mixed |
t |
) |
|
Definiert in Zeile 61 der Datei combat.c.
Benutzt log_file, WT_AXE, WT_CLUB, WT_KNIFE, WT_SPEAR, WT_STAFF und WT_SWORD.
00061 {
00062 if (member(({WT_SWORD, WT_AXE, WT_CLUB, WT_SPEAR, WT_STAFF,
00063 WT_KNIFE}), t ) != -1) {
00064 return 1;
00065 }
00066 else {
00067 log_file("COMBAT","Invalid weapon type: "+t+", object: "+
00068 object_name(previous_object())+"\n");
00069 return 0;
00070 }
00071 }