Reorganize weapons #5
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "reorganize-weapons"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR does a lot of refactoring, as well as:
ranged_weapons
table that acts as a global data structure for constants.gun_data
table to use for describing common values, that will eventually be used for every weapon entity in the mod.When ever you get the re-organizing done let me know then I will accept this PR.
Or make a global namespace like
rangedweapons = {}
then add this to that...Again, could be added to a global "namespace"
Looks like good place for:
@ -0,0 +1,5 @@
if minetest.global_exists("armor") and armor.attributes then
I can hardly wait to start working on improving this code base... now that my issue where I fire a gun and it crashes. (I originally was going to abandon this project... now I might be reviewing this stuff and getting it to a better state)
Done!
@ -0,0 +1,5 @@
if minetest.global_exists("armor") and armor.attributes then
This is indeed the original code being smelly. Fixed 👍
Have you figured out what other_weapons_crafting goes too? (I'd like to make it a better name than other_weapons, but need to know what weapons does it affect?)
It gets used here in crafting.lua, and that seems to be it.
Looks like a few throwing weapons, then gun parts...
I've got some of the settings moved into the
settings-conf
branch. (This will eventually need to get PRed into master, but after this commit, I see lot's changing and that means I need to wait for you to make this an official PR so I can merge it into master than merge thesettings-conf
branch)I'll wrap up these changes in the next commit or two and mark as ready for review. Once both PRs are merged I'll keep going with new fixes in a new PR.
Sounds good with me. :)
I'm looking forward as well! As it stands this PR does still leave a ton of things broken, but its a step in the right direction.
Merging...
Ok ready for more PRs.