74 {
75 PlayerBase other_player = PlayerBase.Cast(target.GetObject());
76 EntityAI item_in_hands_source = player.GetItemInHands();
77
78 if( other_player.IsRestrained() )
79 {
80 EntityAI item_in_hands_target = other_player.GetItemInHands();
81
82 CachedObjectsArrays.ARRAY_STRING.Clear();
83
84 if( item_in_hands_target )
85 {
86 item_in_hands_target.ConfigGetTextArray( "CanBeUnrestrainedBy", CachedObjectsArrays.ARRAY_STRING );
87
88 string item_in_hands_name = item_in_hands_source.GetType();
89
90 for(int i = 0; i < CachedObjectsArrays.ARRAY_STRING.Count(); i++)
91 {
92 if((i % 2) == 0)
93 {
94 string class_name = CachedObjectsArrays.ARRAY_STRING.Get(i);
96 {
97 return true;
98 }
99 }
100 }
101 }
102 }
103 return false;
104 }
class OptionSelectorMultistate extends OptionSelector class_name