199 {
200
201 if ( !super.CanDisplayAttachmentSlot( slot_id ) )
202 return false;
203
204 string slot_name = InventorySlots.GetSlotName(slot_id);
207
208 if ( slot_name.
Contains(
"material_l1" ) || slot_name.
Contains(
"level_1_" ) )
209 {
210 if ( slot_name.
Contains(
"woodenlogs" ) )
211 {
213 }
214 else
215 {
217 }
218 }
219 else if ( slot_name.
Contains(
"material_l2" ) || slot_name.
Contains(
"level_2_" ) )
220 {
221 if ( slot_name.
Contains(
"woodenlogs" ) )
222 {
224 }
225 else
226 {
228 }
229 }
230 else if ( slot_name.
Contains(
"material_l3" ) || slot_name.
Contains(
"level_3_" ) )
231 {
232 if ( slot_name.
Contains(
"woodenlogs" ) )
233 {
235 }
236 else
237 {
239 }
240 }
241
242 return true;
243 }
Construction GetConstruction()
const float MAX_FLOOR_VERTICAL_DISTANCE
override bool CheckMemoryPointVerticalDistance(float max_dist, string selection, PlayerBase player)
proto native CGame GetGame()
bool Contains(string sample)
Returns true if sample is substring of string.
proto int ToLower()
Changes string to lowercase. Returns length.