Commit graph

35 commits

Author SHA1 Message Date
TJ
584767b352 Formatted js files 2021-07-06 19:57:18 -05:00
Jacob Lucas
e30d823225 Removed unnecessary additions to migration 2021-06-23 17:22:28 +01:00
supervj
9a86bf7857 Finish core upgrade to 1.3.5
Filled in some missing pieces in html for core upgrades.  Looked mostly good on both Cyr and Jacob's accounts.

I had a few questions about differences that were added from DND5e, they are as follows:

less\original\npc.less
	line 34 - is the "li" before .creature-type necessary, not in dnd5e

module\item\entity.js
	line 685 - dnd is game.user._id, we have game.user.data._id

module\pixi\ability-template.js
	line 22- dnd is game.user._id, we have game.user.data._id

templates\chat\item-card.html
	line 1- dnd has actor._id, we have actor.data._id
2021-06-23 02:53:39 -04:00
Jacob Lucas
104e49615d Updated to 1.3.3, started removing evidence of statships 2021-06-13 04:25:56 +01:00
Jacob Lucas
37a3e83f3a Potentially updated Migration 2021-06-09 02:29:03 +01:00
Jacob Lucas
2a7e1c419e Updated to DND5e 1.3.2
Things unfinished:
 - Migration
 - The update adds new sections to the class sheet to allow some light customisation, this hasn't been included, but could be extended for the sake of dynamic classes with automatic class features and more
 - The French
 - The packs have not yet been updated, meaning due to the addition of a progression field to the class item, classes now don't set force or tech points
 - I updated the function calls in starships, but I didn't update it very thoroughly, it'll need checking
 - I only did a little testing
 - There has since been updates to DND5e that hasn't made it to release that patch bugs, those should be implemented
Things changed from base 5e:
 - Short rests and long rests were merged into one function, this needed some rewrites to account for force and tech points, and for printing the correct message
Extra Comments:
 - Unfinished code exists for automatic spell scrolls, this could be extended for single use force or tech powers
 - Weapon proficiencies probably need revising
 - Elven accuracy, halfling lucky, and reliable talent are present in the roll logic, this probably needs revising for sw5e
 - SW5e has a variant rule that permits force powers of any alignment to use either charisma or wisdom, that could be implemented
 - SW5e's version of gritty realism, [Longer Rests](https://sw5e.com/rules/variantRules/Longer%20Rests) differs from base dnd, this could be implemented
 - Extra ideas I've had while looking through the code can be found in Todos next to the ideas relevant context
2021-06-04 22:20:48 +01:00
supervj
4d67bef903 Update default values of temp data
Update defaults to null from 0 to allow descriptor of fields to show

Noted by Bacalla:
8206774843

I followed suit from the HP model, need to test to make sure this doesn't break anything.  All the code appears to default to 0 if it is null.
2021-03-16 12:24:29 -04:00
supervj
9b63457ae1 Fine tune migration concurrency
Fix migration concurrency so that it goes in an orderly process.  This ensures that big migrations will not crash.
2021-03-12 16:47:24 -05:00
supervj
a99faad77c Code Cleanup and fix multiple migrations
see above
2021-03-11 01:30:03 -05:00
TJ
893c7b9d5e Async all the way down 2021-03-10 13:50:17 -06:00
supervj
2160508076 Update migration.js
more attempts at banging my head against the wall to no avail...  shortcut out if dataVersion matches though...
2021-03-09 23:37:20 -05:00
supervj
79e3286308 Update migration.js
Trying to add async to the entire migration function chain for owned actor entities s owe can use getUuid since it returns a promise.
2021-03-06 06:51:50 -05:00
supervj
b9cf140e33 Update migration.js
Try to get items to work, just need to get the flag to work
2021-03-04 22:07:44 -05:00
supervj
d48a25bf2f Revert 000 Series Droid and update migration
- Reverted UUID for 000 Series Protocol Droid.
- Updated NPC migration to check for dataVersion flag and shortcut out
- Attempted to add Item migration like NPC migration to fix power concentration and prerequisites, but it fails on compendium pull
2021-03-03 00:58:56 -05:00
TJ
1c58a1b813 Update migration.js 2021-02-23 17:49:07 -06:00
supervj
311854408c Update migration.js
thought this would work, but didn't?  Getting a reserved word error
2021-02-23 07:08:21 -05:00
supervj
6a7c65eefb Update migration.js
Changed to use newer createEmbeddedEntity (createOwnedItem will be deprecated in 0.8.x) and push the entire newPowers array at the same time.  Still saying createEmbeddedEntity doesn't exist on actor.
2021-02-23 07:00:43 -05:00
supervj
6f2e9cdab2 Update Migration
Everything but powers and flags are working
2021-02-23 01:17:30 -05:00
supervj
e43444bc48 Adding flag to config.js for dataVersion control
Adding flag for dataVersion control

** added shell of migration.js for updating NPC Data.  This is only being pushed for visibility by people other than me and is by no means done or tested and probably very broken.

Line 159 commented out to keep from running broken function.  Uncomment for testing.

Broken _updateNPCData from lines 242 to 289
2021-02-22 16:43:41 -05:00
supervj
6e37fd8306 Update migration.js
Found a case where power migration could be skipped if the actor had no items
2021-02-18 14:32:54 -05:00
supervj
7fc983b042 Update to help NPCs work better
This requires all the monsters to be updated with force powers, powerForce/TechLevels, and powercasting "classes"
2021-02-16 02:15:39 -05:00
supervj
a893212b22 Change to Fix migration power lockdown
I think this will migrate every value over to have 1000 casts, which will then get reset to the lower of the value or character max once the actor is loaded.  Essentially pushing a long rest for power casting limits upon migration.
2021-02-15 09:15:36 -05:00
supervj
1b0a70becb Update migration.js
whoops
2021-02-11 09:47:46 -05:00
supervj
54d04f0642 Fix Long Rest to split force and tech powers
Updated  long rest functionality to handle the force tech split
2021-02-11 07:04:13 -05:00
supervj
fb73cdfc08 Split Force and Tech Power Limits
Split force and tech power limits.  Didn't test, may be broken.

Needs separate tab for force vs tech.  Still need to tally number of powers known
2021-02-10 15:41:02 -05:00
supervj
ad50d1549f Powercasting works based on school of power
Updated power items to automatically change mod used when set to powercasting
2021-02-09 23:47:32 -05:00
supervj
b5ecde7f0c Added short and long rest and Temp points
Updated Force and Tech Points on Short and Long Rests along with Temporary points.

Also added class powercasting to migration
2021-02-09 02:14:10 -05:00
supervj
1fda73a36e Update migration.js
add in new power structures
2021-02-02 21:42:15 -05:00
supervj
911d1ce547 Hotfix o 1.2.4 version
Hotfix for 1.2.4 version
2021-01-21 21:46:42 -05:00
supervj
9c6bd3873e Update Core 1.2.2
Update core to 1.2.2.  Sheets are broken
2021-01-18 23:49:04 -05:00
supervj
e6bff40e1b Update Core to 1.2
Update Core to 1.2, pulled from dev 12/10/2020
2021-01-04 15:23:30 -05:00
supervj
68a1b6a9f0 System 1.1.1 ** Requires Foundry 0.7.6
System main update to be inline with dnd5e 1.1.1

Added active effects to as many sheets as I thought applicable. Please check loot, I made an attempt but it may be broken

All .less .css and actor .html updates were made to the old actors.  New actors may be broken with this update

removed templates\actors\oldActor\parts\actor-effects.html for newer templates\actors\parts\active-effects.html

removed module\apps\cast-dialog, templates\apps\cast-cast.html, and templates\items\cast.html.  I do not think they are used, I think they were deprecated when powers were treated as items, if not we can add them back in.

**NOTE** REQUIRES Foundry 0.7.6
2020-11-12 17:30:07 -05:00
supervj
44312146a7 Update to dnd 0.98 Core with some fixes
Updated to 0.98 core for 0.7.x compatability (untested)

Class Skills are pulling in automatically on class item drop to character sheet.

TODO: Expand automated skill drop for Archetypes

KNOWN ISSUE: init.value is being converted to a string causing some NaN errors on the html.  Initiative was changed to a number instead of a string in 0.98 likely some place is assuming it is still a string.  I had to use Number() on the value because it was forcing other vales to be a string because the value is "".  Maybe someone can fix this
2020-10-08 02:20:12 -04:00
supervj
53d7284596 Updating to Push Class skills on level up
Update from DND5E beta for Class Skills on level up and other various fixups
2020-10-06 00:45:33 -04:00
CK
0106a61b43
Add files via upload 2020-06-24 14:23:55 -04:00