actiontakeabite.c 658 B

12345678910111213141516171819202122232425262728293031
  1. class ActionTakeABiteCB : ActionSingleUseBaseCB
  2. {
  3. private const float QUANTITY_USED_PER_SEC2 = 50;
  4. override void CreateActionComponent()
  5. {
  6. m_ActionData.m_ActionComponent = new CASingleUseQuantityEdible(QUANTITY_USED_PER_SEC2);
  7. }
  8. }
  9. class ActionTakeABite: ActionConsumeSingle
  10. {
  11. void ActionTakeABite()
  12. {
  13. m_CallbackClass = ActionTakeABiteCB;
  14. m_Sound = "EatingSoft_0";
  15. m_Text = "#take_a_bite";
  16. }
  17. override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
  18. {
  19. return false;
  20. }
  21. override void CreateConditionComponents()
  22. {
  23. m_ConditionItem = new CCINonRuined();
  24. m_ConditionTarget = new CCTSelf();
  25. }
  26. }