123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181 |
- class LandAnimalYieldItemBase : YieldItemBase {}
- //------------------------------------//
- //generic animal with basic info only //
- //------------------------------------//
- class YieldItemGenericSmallAnimal : LandAnimalYieldItemBase
- {
- void YieldItemGenericSmallAnimal(int baseWeight, string type, int enviroMask, int methodMask)
- {
- m_Type = type;
- m_EnviroMask = enviroMask;
- m_MethodMask = methodMask;
- }
- }
- //mammals
- class YieldItemDeadRabbit : LandAnimalYieldItemBase
- {
- override void Init()
- {
- super.Init();
-
- m_Type = "DeadRabbit";
- m_EnviroMask = AnimalCatchingConstants.MASK_ENVIRO_FOREST;
- m_MethodMask = AnimalCatchingConstants.MASK_METHOD_LANDTRAP_SNARE;
- }
-
- override float GetBaitTypeSensitivity(ECatchingBaitCategories type)
- {
- switch (type)
- {
- case ECatchingBaitCategories.BAIT_TYPE_EMPTY:
- case ECatchingBaitCategories.BAIT_TYPE_PLANT:
- return 1.0;
-
- /*
- //We can define 'offputing' baits the animal would actually AVOID
- case ECatchingBaitCategories.BAIT_TYPE_MEAT_SMALL:
- case ECatchingBaitCategories.BAIT_TYPE_MEAT_LARGE:
- return -1;
- */
- }
-
- return 0.0;
- }
-
- override string GetCatchDeathSoundset()
- {
- return "BrownHareDeath_SoundSet";
- }
-
- override string GetCatchAINoise()
- {
- return "WolfRoarNoise";
- }
-
- override float GetCatchAINoiseBaseStrength()
- {
- return 1.0;
- }
- }
- class YieldItemDeadFox : LandAnimalYieldItemBase
- {
- override void Init()
- {
- super.Init();
-
- m_Type = "DeadFox";
- m_EnviroMask = AnimalCatchingConstants.MASK_ENVIRO_FOREST;
- m_MethodMask = AnimalCatchingConstants.MASK_METHOD_LANDTRAP_SNARE;
- }
-
- override float GetBaitTypeSensitivity(ECatchingBaitCategories type)
- {
- switch (type)
- {
- case ECatchingBaitCategories.BAIT_TYPE_EMPTY:
- case ECatchingBaitCategories.BAIT_TYPE_MUSHROOM:
- case ECatchingBaitCategories.BAIT_TYPE_MEAT_SMALL:
- case ECatchingBaitCategories.BAIT_TYPE_MEAT_LARGE:
- return 1.0;
- }
-
- return 0.0;
- }
-
- override string GetCatchDeathSoundset()
- {
- return "Red_Fox_Death_SoundSet";
- }
-
- override string GetCatchAINoise()
- {
- return "WolfRoarNoise";
- }
-
- override float GetCatchAINoiseBaseStrength()
- {
- return 1.0;
- }
- }
- //poultry
- class YieldItemCapraHircusBase : LandAnimalYieldItemBase
- {
- override void Init()
- {
- super.Init();
-
- m_EnviroMask = AnimalCatchingConstants.MASK_ENVIRO_FIELD;
- m_MethodMask = AnimalCatchingConstants.MASK_METHOD_LANDTRAP_SNARE;
- }
-
- override float GetBaitTypeSensitivity(ECatchingBaitCategories type)
- {
- switch (type)
- {
- case ECatchingBaitCategories.BAIT_TYPE_EMPTY:
- case ECatchingBaitCategories.BAIT_TYPE_PLANT:
- case ECatchingBaitCategories.BAIT_TYPE_SEED:
- case ECatchingBaitCategories.BAIT_TYPE_MUSHROOM:
- case ECatchingBaitCategories.BAIT_TYPE_MEAT_SMALL:
- return 1.0;
- }
-
- return 0.0;
- }
-
- override string GetCatchDeathSoundset()
- {
- return "HenScream_SoundSet";
- }
-
- override string GetCatchAINoise()
- {
- return "WolfRoarNoise";
- }
-
- override float GetCatchAINoiseBaseStrength()
- {
- return 1.0;
- }
- }
- class YieldItemDeadRooster : YieldItemCapraHircusBase
- {
- override void Init()
- {
- super.Init();
-
- m_Type = "DeadRooster";
- }
- }
- class YieldItemDeadChicken_White : YieldItemCapraHircusBase
- {
- override void Init()
- {
- super.Init();
-
- m_Type = "DeadChicken_White";
- }
- }
- class YieldItemDeadChicken_Spotted : YieldItemCapraHircusBase
- {
- override void Init()
- {
- super.Init();
-
- m_Type = "DeadChicken_Spotted";
- }
- }
- class YieldItemDeadChicken_Brown : YieldItemCapraHircusBase
- {
- override void Init()
- {
- super.Init();
-
- m_Type = "DeadChicken_Brown";
- }
- }
|