Coder Social home page Coder Social logo

Comments (1)

RobertSkalko avatar RobertSkalko commented on August 15, 2024

Another problem is that the localization file itself is made strangely.

Individual words work fine for most things, but I use sentences for others. And yes there's a few constant strings in the code as I aimed to develop updates fast and worry about localization after I'm done and had the time.

The spell is a tougher one too, as the description is automatically made. Maybe not the best choice I guess. The way it works is it combines the spell action's condition, action and target parameters into a readable sentence.

So a 5 damage aoe spell is: "|On hit|[condition] |deal 5 damage|[action] |to enemies in radius[target]

If i were to redo the system, I'd probably just opt for the full spell to be localized in the lang file, with the parameters themselves being declared differently, in a way to allow both the spell, and the lang file to call them.

So you could do "Cast a fireball, dealing [FireballDamage] fire damage to enemies in radius\n Radius: [FireballRadius]"

I didn't want to go with that way as It was error prone and more work. But I didn't really think of sentence structure of other languages.

Writing this for mahj in case he wants to redo it.

from age-of-exile.

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.