mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 20:11:24 +01:00
culture type bonuses for production
This commit is contained in:
parent
038c963740
commit
3b8b569aa5
3 changed files with 516 additions and 7 deletions
|
|
@ -614,10 +614,5 @@ window.Resources = (function () {
|
|||
|
||||
const getStroke = (color) => d3.color(color).darker(2).hex();
|
||||
const get = (i) => pack.resources.find((resource) => resource.i === i);
|
||||
|
||||
<<<<<<< HEAD
|
||||
return {generate, methods, models, getStroke, get};
|
||||
=======
|
||||
return {generate, getDefault, defaultModels, methods, getStroke, get};
|
||||
>>>>>>> fe421bcd (resources IIFE module)
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -155,14 +155,14 @@ function editResources() {
|
|||
}
|
||||
|
||||
function changeModel(resource, line, el) {
|
||||
const defaultModels = Resources.defaultModels;
|
||||
const defaultModels = FMG.data.resourceModels;
|
||||
const model = line.dataset.model;
|
||||
const modelOptions = Object.keys(defaultModels)
|
||||
.sort()
|
||||
.map((m) => `<option ${m === model ? 'selected' : ''} value="${m}">${m.replaceAll('_', ' ')}</option>`)
|
||||
.join('');
|
||||
const wikiURL = 'https://github.com/Azgaar/Fantasy-Map-Generator/wiki/Resources:-spread-functions';
|
||||
const onSelect = "resouceModelFunction.innerHTML = Resources.defaultModels[this.value] || ' '; resouceModelCustomName.value = ''; resouceModelCustomFunction.value = ''";
|
||||
const onSelect = "resouceModelFunction.innerHTML = FMG.data.resourceModels[this.value] || ' '; resouceModelCustomName.value = ''; resouceModelCustomFunction.value = ''";
|
||||
|
||||
alertMessage.innerHTML = `
|
||||
<fieldset data-tip="Select one of the predefined spread models from the list" style="border: 1px solid #999; margin-bottom: 1em">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue