Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

regulos

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regulos

  • 0.3.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Regulos

'Rift - Planes of Telera' combat log parser

How to Install
  • gem install regulos
Usage
  • require 'regulos'
  • log = Regulos::CombatLog::File.new :path => "/path/to/combatlog.txt"
  • log.read
  • Find all events that are heals that both target and originate from a player.

  • log.select do |e|
  • e.heal? \
  • and                 \
    
  • e.targets :player \
  • and                 \
    
  • e.origin_is :player
  • end
Notes

The parser attempts to be as 'lazy' as possible. It does not read the entire file into memory, rather, it reads as needed.

Methods on Event

time, action_code, origin, target, origin_name, target_name, output, spell_id, spell_name, full_message

TODO

  • End of combat markers are not handled.
  • Pet detection is surely broken.
  • More convience methods for searching events, such as 'pvp?'
  • Make file parsing smart in that events are grouped per end-of-combat marker

Author: James Cook

FAQs

Package last updated on 09 Mar 2011

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc