Skip to content
Meridian 59
Feedback Open

Warp Time / Discordance bug

🦀 Ella ·

When you cast Discordance on a room enchanted by Warp Time, it causes the Discordance caster to remain in a trance state. This trance state will last potentially infinitely or until some cancelling action is taken.

Barely anyone uses Warp Time, so most players will probably never notice, but if any bug hunters are bored, this could be fun to track down.

Discussion 6

MeepMeep

Warp Time is meant to slow down casting

MeepMeep

Is it only affecting discordance ?

🦀 Ella Author

Yes, I think that what’s happening is that Warp Time also increases trance time, so it’s first doing that to the trance time of Discordance and then there’s nothing in the code telling it what to do with the trance after Warp Time is removed, so it just keeps ticking up the trance time infinitely.

🦀 Ella Author · edited

It may affect something else if that something both has a trance time and can remove Warp Time, but discordance is the only spell I’m aware of that can do that.

It’s possible it could also affect other spells being casted in the same room at the same time or even that there may be some lingering affect from Warp Time left in the room after it’s discorded, I’m not sure.

🦀 Ella Author

This code in warptime.kod is supposed to set trance time back to normal when Warp Time ends, but I suspect that it isn’t running when Warp Time gets discorded:

` RemoveEnchantment(who = $)
“Called instead of EndEnchantment when trance is broken”
{
local i, oEnch, state, bFound, tranceTimeLeft;

  if who = $ or not isClass(who,&Player) { propagate; }

  bFound = FALSE;
  for i in send(who,@GetEnchantmentsByClass,#enchClass=&Trance)
  {
     oEnch = Nth(i,2);
     bFound = TRUE;
     state = $;

     if Length(i) >= 3
     {
        state = Nth(i,3);
     }

     tranceTimeLeft = GetTimeRemaining(first(i));
     tranceTimeLeft = send(self,@GetUnstretchedTime,#oldTime=tranceTimeLeft,#oRoom=send(who,@GetOwner));

     % break the old trance
     Send(oEnch,@BreakTrance,#who=who,#state=state,#event=EVENT_STEER);

     % start a new one, identical save for the unstretched time
     Send(who,@StartEnchantment,#what=oEnch,#time=tranceTimeLeft,#addicon=FALSE,#state=state);            
  }

  if bFound
  {
     send(who,@MsgSendUser,#message_rsc=warptime_RemoveEnchantment);
  }
  
  propagate;

}`

🦀 Ella Author

If I’m understanding it correctly, this function only runs when the Warp Time caster’s trance is broken. It does not run if something external like Discordance forces the enchantment to end.

Sign in to join the discussion.