00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _P_FAILURES_H
00013 #define _P_FAILURES_H
00014
00015
00016 int GetBrandIndex(int type);
00017 char *GetPartBrandName(int type, int level);
00018 void FailureRadioStatic(MECH * mech, int weapnum, int weaptype,
00019 int section, int critical, int roll, int *modifier, int *type);
00020 void FailureRadioShort(MECH * mech, int weapnum, int weaptype, int section,
00021 int critical, int roll, int *modifier, int *type);
00022 void FailureRadioRange(MECH * mech, int weapnum, int weaptype, int section,
00023 int critical, int roll, int *modifier, int *type);
00024 void FailureComputerShutdown(MECH * mech, int weapnum, int weaptype,
00025 int section, int critical, int roll, int *modifier, int *type);
00026 void FailureComputerScanner(MECH * mech, int weapnum, int weaptype,
00027 int section, int critical, int roll, int *modifier, int *type);
00028 void FailureComputerTarget(MECH * mech, int weapnum, int weaptype,
00029 int section, int critical, int roll, int *modifier, int *type);
00030 void FailureWeaponMissiles(MECH * mech, int weapnum, int weaptype,
00031 int section, int critical, int roll, int *modifier, int *type);
00032 void FailureWeaponDud(MECH * mech, int weapnum, int weaptype, int section,
00033 int critical, int roll, int *modifier, int *type);
00034 void FailureWeaponJammed(MECH * mech, int weapnum, int weaptype,
00035 int section, int critical, int roll, int *modifier, int *type);
00036 void FailureWeaponRange(MECH * mech, int weapnum, int weaptype,
00037 int section, int critical, int roll, int *modifier, int *type);
00038 void FailureWeaponDamage(MECH * mech, int weapnum, int weaptype,
00039 int section, int critical, int roll, int *modifier, int *type);
00040 void FailureWeaponHeat(MECH * mech, int weapnum, int weaptype, int section,
00041 int critical, int roll, int *modifier, int *type);
00042 void FailureWeaponSpike(MECH * mech, int weapnum, int weaptype,
00043 int section, int critical, int roll, int *modifier, int *type);
00044 void CheckGenericFail(MECH * mech, int type, int *result, int *mod);
00045 void CheckWeaponFailed(MECH * mech, int weapnum, int weaptype, int section,
00046 int critical, int *modifier, int *type);
00047
00048 #endif