Git Product home page Git Product logo

Comments (4)

mid-kid avatar mid-kid commented on September 28, 2024

I can only imagine this adding confusion for little gain.
It does look neater, however.

from pokecrystal.

Rangi42 avatar Rangi42 commented on September 28, 2024

My rationale is repeatedly seeing people say "I added a new type and it doesn't work" or "I made Dark/Fairy/etc physical and it doesn't work". The constants look like this:

	const_def

DEF PHYSICAL EQU const_value
	const NORMAL
	...
	const STEEL

DEF UNUSED_TYPES EQU const_value
	const_next 19
	const CURSE_TYPE
DEF UNUSED_TYPES_END EQU const_value

DEF SPECIAL EQU const_value
	const FIRE
	...
	const DARK
DEF TYPES_END EQU const_value

I expect the rept to be easier to work with than the current bunch of dw Normals that need manually curating when the physical types change. It would only fail if you add more than 19 physical types, which I've never heard of.

from pokecrystal.

mid-kid avatar mid-kid commented on September 28, 2024

You're right, the behavior of both tables should match. I don't mind unrolling the const table (instead of using const_next) either.

from pokecrystal.

Rangi42 avatar Rangi42 commented on September 28, 2024

Hmm. I'd prefer not to unroll the const table, because using const_next shows how the special types start at 20. Also even if the const_next 19 were replaced with const_skip, it would be idiomatic to do one const_skip N, not on const_skip line for each dw Normal line.

from pokecrystal.

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.