tjc12821

Untitled

Feb 16th, 2018
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. // If going from 0 to 1 shard was a surprise, the player would have to react to it
  2. if ( p() -> resources.current[RESOURCE_SOUL_SHARD] == 1 )
  3. p() -> shard_react = p() -> sim -> current_time() + p() -> total_reaction_time();
  4. else if ( p() -> resources.current[RESOURCE_SOUL_SHARD] >= 1 )
  5. p() -> shard_react = p() -> sim -> current_time();
  6. else
  7. p() -> shard_react = timespan_t::max();
Advertisement
Add Comment
Please, Sign In to add comment