204 {
205
206 if ( !super.CanDisplayAttachmentSlot( slot_id ) )
207 return false;
208
209 string slot_name = InventorySlots.GetSlotName(slot_id);
211 PlayerBase player = PlayerBase.Cast(
g_Game.GetPlayer() );
212
213 if ( slot_name.
Contains(
"material_l1" ) || slot_name.
Contains(
"level_1_" ) )
214 {
215 if ( slot_name.
Contains(
"woodenlogs" ) )
216 {
218 }
219 else
220 {
222 }
223 }
224 else if ( slot_name.
Contains(
"material_l2" ) || slot_name.
Contains(
"level_2_" ) )
225 {
226 if ( slot_name.
Contains(
"woodenlogs" ) )
227 {
229 }
230 else
231 {
233 }
234 }
235 else if ( slot_name.
Contains(
"material_l3" ) || slot_name.
Contains(
"level_3_" ) )
236 {
237 if ( slot_name.
Contains(
"woodenlogs" ) )
238 {
240 }
241 else
242 {
244 }
245 }
246
247 return true;
248 }
Construction GetConstruction()
const float MAX_FLOOR_VERTICAL_DISTANCE
override bool CheckMemoryPointVerticalDistance(float max_dist, string selection, PlayerBase player)
bool Contains(string sample)
Returns true if sample is substring of string.
proto int ToLower()
Changes string to lowercase. Returns length.