News for hackers. Stuff that matters.
Re:How I Learned to Stop Worrying and Love the State Machine by reificator on Monday February 26, 2018 @09:49PM (#16470755)
I prefer the related example of enchanted weaponry.

* A Sword is a type of weapon.

* A Fire Sword is a type of Sword.

* A Mace is a type of weapon.

* A Mace of Ice is a type of Mace.

* A Sword of Ice and Fire is a type of Sword.

Re:How I Learned to Stop Worrying and Love the State Machine by xapata on Monday February 26, 2018 @10:30PM (#16470877)
What about if you hold the sword by the blade and hit someone with the pommel, is it a kind of Mace then?
Re:How I Learned to Stop Worrying and Love the State Machine by gordo4 on Tuesday February 27, 2018 @01:07AM (#16471421)
just use inverted sword asset on mace weapon if you're lazy. melee is what you're talking about though. probably best to make melee a different weapon configuration and change to it when wielding. or make melee a weapon modifier. but the assets would differ, at least, in how the attack is drawn, but we could be talking about only a backend here, and UI is irrelevant.
Re:How I Learned to Stop Worrying and Love the State Machine by xapata on Tuesday February 27, 2018 @07:04PM (#16479399)
So there's some weird Sword method that changes the sword to a Mace? Seems bug-prone. What if there's a special quest that triggers only if you're carrying a Mace? The message boards will be full of clever people saying, "Guess what, if you switch sword grips, you can actually get the Mace quest!"