actionworldcraftcancel.c 550 B

12345678910111213141516171819202122232425262728
  1. class ActionWorldCraftCancel: ActionSingleUseBase
  2. {
  3. void ActionWorldCraftCancel()
  4. {
  5. m_Text = "#cancel";
  6. }
  7. override void CreateConditionComponents()
  8. {
  9. m_ConditionItem = new CCINone;
  10. m_ConditionTarget = new CCTNone;
  11. }
  12. override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
  13. {
  14. return player.GetCraftingManager().IsInventoryCraft();
  15. }
  16. override void Start( ActionData action_data ) //Setup on start of action
  17. {
  18. super.Start( action_data );
  19. }
  20. override bool IsLocal()
  21. {
  22. return true;
  23. }
  24. };