1234567891011121314151617181920212223242526272829 |
- class RopeBelt: Belt_Base
- {
- override void SetActions()
- {
- super.SetActions();
-
- AddAction(ActionDeCraftRopeBelt);
- }
-
- override bool CanPutInCargo( EntityAI parent )
- {
- if( !super.CanPutInCargo( parent ) )
- {
- return false;
- }
-
- return IsEmpty();
- }
-
- override bool CanReceiveAttachment( EntityAI attachment,int slotId )
- {
- if( !super.CanReceiveAttachment( attachment, slotId ) )
- {
- return false;
- }
-
- return !GetInventory().IsInCargo();
- }
- };
|