Giter Club home page Giter Club logo

Comments (9)

KevinCalderone avatar KevinCalderone commented on August 31, 2024

Yes it looks like we are missing energy cost currently. Good suggestion.

To be more general, maybe we should have a health cost too. (eg. Stim)

from s2client-proto.

kuzi117 avatar kuzi117 commented on August 31, 2024

Would it be better to have an additional field that specifies what resource it's using? Are there any other resources than energy and health and is health only used by stim? I can't think of anything else.

from s2client-proto.

Dentosal avatar Dentosal commented on August 31, 2024

Void Ray slowdown?

from s2client-proto.

kuzi117 avatar kuzi117 commented on August 31, 2024

Err, I think there's no cost associated with Prismatic Alignment beyond the cooldown. I figure the slowdown is an effect and not a cost.

from s2client-proto.

Dentosal avatar Dentosal commented on August 31, 2024

That sounds right. How about archon merge, Zerg morphs and nuke calldown, that result to loss of other units? Probably not an issue either, since it should be quite clear what happens with those.

from s2client-proto.

kuzi117 avatar kuzi117 commented on August 31, 2024

I feel like nuke calldown is interesting because nukes could be considered a resource, but it's a global resource instead of per unit. Merge and morph are interesting, I'm not sure if the unit could be considered a "cost" in this sense though. Perhaps there's something different that could specify it? Maybe for archons is makes sense because it costs "another unit" but otherwise don't have a cost. You bring up another good point with morphs though. Morphing is an ability that costs minerals/gas. I believe the definition for abilities they gave also includes things like Terran buildings creating attachments. Those also have an associated cost.

from s2client-proto.

Dentosal avatar Dentosal commented on August 31, 2024

All Zerg morphs create a new unit that cannot be obtained otherwise (at least currently), and you can always check the cost of the new unit. GameData contains repeated UnitTypeData field that contains following info on baneling:

unit_id: 9
name: "Baneling"
available: true
cargo_size: 2
attributes: Biological
movement_speed: 2.5
armor: 0.0
mineral_cost: 50
vespene_cost: 25

Other related case would be buildings. Do their abilities need to have the cost listed, or is it enough to be able to fetch it from the unit list. I think it is, but I'm not completely sure.

from s2client-proto.

Dentosal avatar Dentosal commented on August 31, 2024

Another interesting case is Oracle energy: The ability itself costs 25 energy to activate, and then some energy per every second. Viper has similar ability, Consume. Both abilities take hp, but oracle targets moving units, and viper friendly structures. Moreover, Consume gives energy instead of reducing it, but that could just be marked with negative energy cost. Maybe using two values, energy_cost and energy_cost_per_second could be possible?

from s2client-proto.

noxiaz avatar noxiaz commented on August 31, 2024

Would still be nice getting an energy_cost for an ability :)

from s2client-proto.

Related Issues (20)

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.