Giter Club home page Giter Club logo

Comments (4)

cwc avatar cwc commented on August 15, 2024

Resting in general seems to be broken. Sometimes time doesn't appear to advance at all when a time value IS supplied.

from omegarpg.

vsrz avatar vsrz commented on August 15, 2024

In command1.cpp there's a Command_Duration flag for every command that takes "time". I think the reason it's there is to pass the time relative to the amount of time it takes to prepare to perform an action (or where the called function does not enforce time). For example, if you want to look at your inventory, it takes "time" to open up your backpack and look around. Moving anything specific takes additional time for each tick.

You could conclude that when you're ready to take nap, the act of "thinking about taking a nap" takes some time. Obviously that's preposterous so I pulled the Command Duration out on my latest pull request.

The act of napping and advancing time all occurs within the nap() function in command3.cpp, so we shouldn't enforce a penalty on a user who is trying to decide how long to nap for.

In the long run I think it would be better to move all of the command durations into each function that is called rather than generalizing it in the command.cpp files.

from omegarpg.

cwc avatar cwc commented on August 15, 2024

Thanks for looking into this! I definitely agree that bringing up a rest prompt shouldn't inherently take any time. In my opinion that falls on the "player" side of the input rather than the "character" side. I also think just glancing at the first inventory screen shouldn't advance time (IRL we typically know what we're wearing/carrying in our hands at any given time), but for opening the pack it probably makes sense, especially if there are more than a few items.

And yeah, definitely the command durations should be moved... no more huge lists of constants all in one file 😖.

I'll review #11 as soon as I get a chance.

from omegarpg.

cwc avatar cwc commented on August 15, 2024

Fixed in #12. If there are any more bugs with resting, a new issue should be opened.

from omegarpg.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.