Page 1 of 1
Hiding of resistances.
Posted: Tue Nov 06, 2018 11:29 am
by eradicator
posila wrote: Sat Nov 03, 2018 10:33 pm
- Resistances/Damage types - no engine change, mods can add more damage types if they need to
What?
Ability to exclude a resitance type from all entity_info on a per-damage-type basis. (E.g. a prototye flag on the damage-types.)
Explanation:
Now that 0.17 is going to bring back the displaying of resistances i'd like the ability to not display certain resistances on entities even if they have resistance to a damage type. This is because i use uniquely named damage types to circumvent the engine limitation of not being able to know what weapon was used to cause damage on an entity. There are other hacky usages of damage types, and some mods even add a flat 100% resistance to (almost) all entities for their special script-controlled damage types to work.
Re: Hiding of resistances.
Posted: Wed Nov 28, 2018 9:31 pm
by Bilka
Okay, I added DamageType::hidden for 0.17.
Re: Hiding of resistances.
Posted: Wed Nov 28, 2018 9:50 pm
by eradicator
Great!
Does it come with API readability?
Re: Hiding of resistances.
Posted: Wed Nov 28, 2018 9:53 pm
by posila
It does. It also comes with LuaControl::character_running_speed for some reason (inside joke/poke at content of Bilka's pull request)
Re: Hiding of resistances.
Posted: Wed Nov 28, 2018 9:55 pm
by eradicator
posila wrote: Wed Nov 28, 2018 9:53 pm
It does. It also comes with LuaControl::character_running_speed for some reason (inside joke/poke at content of Bilka's pull request)
I...see.
Edit: Wait, that was weird. When i pressed quote the explanatory (brackets) weren't there yet.
Thanks again
.
Re: Hiding of resistances.
Posted: Wed Nov 28, 2018 11:38 pm
by Bilka
posila wrote: Wed Nov 28, 2018 9:53 pm
It does. It also comes with LuaControl::character_running_speed for some reason (inside joke/poke at content of Bilka's pull request)
I find it awkward to make pull requests with like 10 lines of changes (or 1 line ...
points at last few bugfix PRs) , so I often end up putting multiple unrelated API additions into the same pull request
![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
Just give me write access to master and I'll stop
![Laughing :lol:](./images/smilies/icon_lol.gif)
Re: Hiding of resistances.
Posted: Thu Nov 29, 2018 12:10 am
by eradicator
![i-can-haz-write-access.jpg](./download/file.php?id=40843)
- i-can-haz-write-access.jpg (98.99 KiB) Viewed 1891 times