DayZ 1.24
Loading...
Searching...
No Matches
FishingActionData Class Reference
Inheritance diagram for FishingActionData:
[legend]
Collaboration diagram for FishingActionData:
[legend]

Private Member Functions

void InitBait (ItemBase item)
 
bool IsBaitEmptyHook ()
 

Private Attributes

const float FISHING_SUCCESS = 0.2
 
const float FISHING_BAIT_LOSS = 0.02
 
const float FISHING_HOOK_LOSS = 0.015
 
const float FISHING_DAMAGE = 1.5
 
const float FISHING_GARBAGE_CHANCE = 0.2
 
bool m_IsSurfaceSea
 
bool m_IsBaitAnEmptyHook
 
int m_FishingResult = -1
 
float m_RodQualityModifier = 0
 
ItemBase m_Bait
 

Detailed Description

Definition at line 1 of file ActionFishingNew.c.

Member Function Documentation

◆ InitBait()

void FishingActionData::InitBait ( ItemBase item)
inlineprivate

Definition at line 15 of file ActionFishingNew.c.

16 {
17 m_Bait = item;
18 m_IsBaitAnEmptyHook = !m_Bait.ConfigIsExisting("hookType");
19 }

References m_Bait, and m_IsBaitAnEmptyHook.

Referenced by HandleFishingResultFailure(), HandleFishingResultSuccess(), and ActionFishingNew::SetupAction().

◆ IsBaitEmptyHook()

bool FishingActionData::IsBaitEmptyHook ( )
inlineprivate

Definition at line 21 of file ActionFishingNew.c.

22 {
24 }

References m_IsBaitAnEmptyHook.

Referenced by HandleFishingResultFailure(), and HandleFishingResultSuccess().

Member Data Documentation

◆ FISHING_BAIT_LOSS

const float FishingActionData::FISHING_BAIT_LOSS = 0.02
private

Definition at line 4 of file ActionFishingNew.c.

◆ FISHING_DAMAGE

const float FishingActionData::FISHING_DAMAGE = 1.5
private

Definition at line 6 of file ActionFishingNew.c.

Referenced by HandleFishingResultFailure(), and HandleFishingResultSuccess().

◆ FISHING_GARBAGE_CHANCE

const float FishingActionData::FISHING_GARBAGE_CHANCE = 0.2
private

Definition at line 7 of file ActionFishingNew.c.

Referenced by HandleFishingResultSuccess().

◆ FISHING_HOOK_LOSS

const float FishingActionData::FISHING_HOOK_LOSS = 0.015
private

Definition at line 5 of file ActionFishingNew.c.

Referenced by HandleFishingResultFailure().

◆ FISHING_SUCCESS

const float FishingActionData::FISHING_SUCCESS = 0.2
private

Definition at line 3 of file ActionFishingNew.c.

◆ m_Bait

ItemBase FishingActionData::m_Bait
private

◆ m_FishingResult

int FishingActionData::m_FishingResult = -1
private

◆ m_IsBaitAnEmptyHook

bool FishingActionData::m_IsBaitAnEmptyHook
private

Definition at line 10 of file ActionFishingNew.c.

Referenced by InitBait(), and IsBaitEmptyHook().

◆ m_IsSurfaceSea

bool FishingActionData::m_IsSurfaceSea
private

Definition at line 9 of file ActionFishingNew.c.

Referenced by HandleFishingResultSuccess(), and ActionFishingNew::SetupAction().

◆ m_RodQualityModifier

float FishingActionData::m_RodQualityModifier = 0
private

Definition at line 12 of file ActionFishingNew.c.

Referenced by ActionFishingNew::SetupAction().


The documentation for this class was generated from the following file: