actiontakeabite.c 677 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_Animation = "eat";
  16. m_Text = "#take_a_bite";
  17. }
  18. override bool ActionCondition( PlayerBase player, ActionTarget target, ItemBase item )
  19. {
  20. return false;
  21. }
  22. override void CreateConditionComponents()
  23. {
  24. m_ConditionItem = new CCINonRuined;
  25. m_ConditionTarget = new CCTSelf;
  26. }
  27. };