FANDOM



Cron是从Unix 借来的词语,意为定时的可重复的事件。在Habitica中,Cron指一个自动过程,在每天开始时重置玩家的每日任务并完成其他特定动作。

Cron在每日起始时间(默认为午夜)之后玩家的账号与游戏第一次互动时发生。每日起始时间按玩家自己的时区计算。

Cron并不恰好在每日起始时间发生,除非玩家的账号那时碰巧登录在Habitica上。如果你在每日起始时间I使用Habitica,你可能需要刷新网页或同步移动应用来强制运行cron。

Habitica的网页会在几个小时的不活动之后自动刷新,所以如果你让网页在浏览器里开着过夜,cron可能在你睡着时运行。

触发Cron编辑

如果每个勾选了“造成伤害之前确认这个每日任务未完成”的每日任务在前一天已完成,那么每日起始时间之后你的任何行动都会触发cron。若非如此,一旦你有任何动作,就会触发“记录昨天的活动”界面,它会显示昨天未完成的激活的每日任务,并给你最后的机会标记其为已完成。当你按下“开始新的一天”按钮,cron就会运行。

会触发cron的行动的例子(包括但不限于):

  • 登陆网站,
  • 勾选一个任务,
  • 点击同步按钮,
  • 刷新页面,
  • 购买奖励,
  • 更换装备,
  • 施放技能。

Cron Actions编辑

在酒馆中休息编辑

Avatar-Resting

在酒馆中休息

当cron运行时,它会检查你是否在酒馆中休息。如果是的,它会跳过cron的一些部分。具体地说,它不会对你造成来自你未完成每日任务的伤害,对副本参与者也不会,如果你参加了一个Boss副本;它不会计算你的boss或收集副本的进度,也不会给你魔法值。大多数其他cron动作会被执行。

一般cron过程(摘要)编辑

一般Cron过程(细节)编辑

  • 对于每个激活而未完成的每日任务(以下内容对灰色每日任务不适用)
    • 把这个每日任务的连击重置到零并对你造成伤害
    • 如果你在Boss副本中,对你和副本内所有队伍成员造成额外伤害。
    • 改变这个每日任务的价值,让它更红。
    • 取消勾选这个每日任务的所有勾选框。
  • 对于每个已完成的每日任务
    • 取消勾选这个每日任务的所有勾选框。
    • 取消勾选这个每日任务本身。
  • 没有同时拥有“+”和“-”行动的习惯的价值大小向0减小(变得更黄)。
  • 对于每个待办事项,改变其价值使之轻微变红。
  • 检查你的生命值是否小于零,如果是,则激活死亡机制
  • 把你的掉落计数重置到零(允许你找到更多掉落物,即使你昨天达到了掉落上限。)
  • 移除你获得的所有buff(这发生在以上行动之后,因此在cron期间你的buff还在帮助你)。
  • 确定是否获得完美日buff,如果是,就应用它。
  • 恢复魔法值
    • 完美日,用户获得10点或10%的最大魔法值,取其高者。
    • 如果一些激活的每日任务未完成,恢复的魔法值数量与完成的每日任务占已激活的百分比成正比。例如,一个完成70%已激活每日任务的玩家会获得完美日魔法值的70%(也就是7魔法值或者7%的最大魔法值,取其高者)。
    • 未完成每日任务下已勾选的清单项也可以获得魔法值。例如,一个玩家有10个激活的每日任务,其中Ta完成了9个,就会获得完美日魔法值的90%。但是,如果这个玩家在最后未完成的每日任务下面勾上了一半的清单项,Ta就会获得完美日魔法值的95%。如果最后一个未完成每日任务下的所有清单项都勾上了,这个玩家就会获得完美日魔法值的100%,尽管这个每日任务本身没有被勾上。
    • 如果你拥有的魔法值超过了最大魔法值,魔法值就减到其上限。
  • 如果你在(boss或收集)副本
    • 计算你个人自上一次cron以来积累的副本进度(也就是对boss的伤害或找到的收集品),把进度加到副本上,
    • 把你的个人副本进度重置到0,
    • 检查副本是否结束,如果是,完成结束副本操作(显示胜利信息和发放奖励)。

几天不活动后触发Cron 编辑

如果一天内玩家没有和Habitica互动,这天他们就不会经历cron。

如果玩家几天不活动,之后与网站互动触发了cron,最后的伤害会把这几天所有的未完成每日任务计算在内,但每个每日任务只算一次。不活动之前一天完成的每日任务,在玩家的下一次cron运行(也就是他们回来时)之前,仍然算作完成。换句话说,如果一个玩家在星期一完成了所有激活的任务,然后一直到星期四才再次登录,那么任何上次登陆时完成的任务都不会造成伤害,但不活动期间才激活的任务仍然会造成伤害,除非它在上一个活动日时已经被标记为完成了。

无论用户上次何时登陆,Cron的其他效果都不变。例如,基于Cron的魔法值恢复不会在几天不活动之后更高。

夏令时和其他时区调整编辑

如果因为旅游或者夏令时始末,你的时区改变了,Cron可能会在意料之外的时间触发,也可能一天触发两次。为了在你知道时区将改变时避免受到不公平的伤害,最好在改变发生时和次日在酒馆中休息

在多台设备上使用编辑

如果你在两台或更多设备(例如电脑和手机)上使用Habitica,请确认每台的时区都一样。如果其中一台的时区与其他不同,那么Cron可能每天都发生在错误的时间并且/或者每天多次触发。要获取更多信息,参见Habitica网站设置页面的“时区”部分。

恢复Cron造成的不当伤害编辑

如果由于时区变化Cron在意料之外发生,或者现实生活中你完成的每日任务没有在Habitica中标记完成,你通常会受到伤害,并可能感到不公平。你可以用修正角色数值来恢复你失去的生命值。未完成的每日任务会失去连击数,但你可以编辑各个每日任务来恢复连击。

Habitica不存储你的数据和连击的历史信息,所以你需要记住或者估计之前的生命值和连击数。数据展示工具可以帮到你。 The "Dailies History" section allows you to estimate streaks. The "Stats and Streaks Backup" section can be used before you experience a problem with Cron to save a copy of your data to make restoring it easier after a Cron error has occurred.

自定义每日起始时间编辑

主条目: Custom Day Start
Cron settings

This setting allows you to specify what hour you want your day to start.

A player may change the time when a new Habitica day begins by selecting a Custom Day Start time from the dropdown in the Settings screen. This is the earliest possible time that Cron can run each day.

对队伍的效果编辑

来自副本boss的伤害编辑

One of Cron's functions is to cause damage to the player for any scheduled Dailies that they did not complete. If the player is taking part in a Boss Quest, Cron will also cause the Boss to do additional damage to the player, and also do that same damage to all other players in the quest.

For example, consider a quest with two participants, John and Jane. John wakes up, starts to use Habitica, and his Cron runs. He hadn't completed 5 of his Dailies on the previous day, so he loses (for example) 7 HP because of them. In addition, the incomplete Dailies cause the Quest Boss to deal 10 damage to him AND to Jane. His total health loss is therefore 15 HP.

Jane wakes later, starts using Habitica, and her Cron runs. She didn't complete 2 of her Dailies, so she loses 3 HP from them, and in addition, the Boss deals 4 damage to her AND to John (in addition to the 15 HP he lost earlier in the day). Jane also sees the 10 damage caused by John while she was sleeping. Thus her total health loss will be 17 HP.

Buff策略编辑

Any buffs you cast for your party disappear for each party member when that member's next Cron runs. If you are the first person in your party to start using Habitica that day, wait until your party mates have started using Habitica before you cast party buffs. Otherwise, you would effectively be buffing your party mates for their yesterday, since their Cron hasn't run yet, and they would immediately lose the buffs when the started using Habitica later that day.

However any tasks they complete before you cast your buffs will not get any benefit from the buffs because buffs for the day are not retroactively applied. So the most effective way for you to use your buff skills is to wait until all party members have started using Habitica but don't wait any longer than that!

Cron安全模式 编辑

Cron Safe Mode is a feature that the administrators can turn on for every player on the site. It is impossible for it to be turned on only for some players. It allows Cron to run as normal except that the damaging actions from uncompleted Dailies do not occur.

Safe Mode makes these changes to Cron:

  • Incomplete Dailies do not cause player damage.
  • Incomplete Dailies do not cause damage to the party from the quest boss.
  • Incomplete Dailies do not have their streaks reset.
  • Incomplete Dailies do not have their task value changed (their color does not move towards red).
  • Incomplete Dailies do not reduce the overnight gain of mana.
  • Player gets a Perfect Day even if some Dailies were incomplete.

Safe Mode was first used on May 21, 2016 to protect users from damage and maintain their streaks while the Habitica site experienced an outage for maintenance, but it may be used again in the future for long outages or in the event of unexpected downtime from some failure outside of the administrators' control (e.g., if the website hosting platform or database platform ever fail).

已知漏洞 编辑

Cron timeout errors when history arrays are large

描述: Sometimes when users have large history arrays stored (for example from very numerous clicks within the history period), Cron will timeout before completion, resulting in effects such as preventing the user from damaging a boss.
解决方法: Pending a systematic fix, affected users can contact the Report a Bug guild to have the problem corrected.
Octocat habitica Issue #10386