DayZ 1.24
Loading...
Searching...
No Matches
SewingKit.c
Go to the documentation of this file.
2{
12
13 override float GetInfectionChance(int system = 0, Param param = null)
14 {
15 if (m_Cleanness == 1)
16 return 0;
17 else
18 return 0.3;
19
20 }
21
22 override bool CanBeDisinfected()
23 {
24 return true;
25 }
26
28 {
29 super.OnCombine(other_item);
30 if (m_Cleanness == 1 && other_item.m_Cleanness == 0)
31 SetCleanness(0);
32 }
33};
ActionSewSelfCB ActionContinuousBaseCB ActionSewSelf()
ActionSewTargetCB ActionContinuousBaseCB ActionSewTarget()
void AddAction(typename actionName)
int m_Cleanness
Definition ItemBase.c:4715
void SetCleanness(int value, bool allow_client=false)
Definition ItemBase.c:8357
Base Param Class with no parameters. Used as general purpose parameter overloaded with Param1 to Para...
Definition param.c:12
override void SetActions()
Definition SewingKit.c:3
override void OnCombine(ItemBase other_item)
Definition SewingKit.c:27
override bool CanBeDisinfected()
Definition SewingKit.c:22
override float GetInfectionChance(int system=0, Param param=null)
Definition SewingKit.c:13