- fixed decans.js
This commit is contained in:
parent
822ffd5242
commit
737dcc95eb
1 changed files with 5 additions and 11 deletions
|
|
@ -12,7 +12,6 @@ var module_decans_solar = {
|
||||||
group: {
|
group: {
|
||||||
id: "decans",
|
id: "decans",
|
||||||
text: "Decans",
|
text: "Decans",
|
||||||
info: "true"
|
|
||||||
},
|
},
|
||||||
actions: [
|
actions: [
|
||||||
[0],
|
[0],
|
||||||
|
|
@ -287,7 +286,6 @@ var module_decans_rising = {
|
||||||
group: {
|
group: {
|
||||||
id: "decans",
|
id: "decans",
|
||||||
text: "Decans",
|
text: "Decans",
|
||||||
info: "true"
|
|
||||||
},
|
},
|
||||||
actions: module_decans_solar.definitions.actions
|
actions: module_decans_solar.definitions.actions
|
||||||
},
|
},
|
||||||
|
|
@ -295,9 +293,7 @@ var module_decans_rising = {
|
||||||
return SL.Astro.Logy.getZodiac(m.ephemeris.asc.deg).decan;
|
return SL.Astro.Logy.getZodiac(m.ephemeris.asc.deg).decan;
|
||||||
},
|
},
|
||||||
calculate: function(definitions, property) {
|
calculate: function(definitions, property) {
|
||||||
var a = definitions.actions[property];
|
return definitions.actions[property];
|
||||||
a[0].action += " rising";
|
|
||||||
return a;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -310,7 +306,6 @@ var module_decans_fulldegrees = {
|
||||||
group: {
|
group: {
|
||||||
id: "decans",
|
id: "decans",
|
||||||
text: "Decans",
|
text: "Decans",
|
||||||
info: "true"
|
|
||||||
},
|
},
|
||||||
actions: [
|
actions: [
|
||||||
[0],
|
[0],
|
||||||
|
|
@ -669,7 +664,6 @@ var module_decans_fulldegrees_rising = {
|
||||||
group: {
|
group: {
|
||||||
id: "decans",
|
id: "decans",
|
||||||
text: "Decans",
|
text: "Decans",
|
||||||
info: "true"
|
|
||||||
},
|
},
|
||||||
actions: module_decans_fulldegrees.definitions.actions
|
actions: module_decans_fulldegrees.definitions.actions
|
||||||
},
|
},
|
||||||
|
|
@ -677,13 +671,13 @@ var module_decans_fulldegrees_rising = {
|
||||||
return m.ephemeris.asc.deg;
|
return m.ephemeris.asc.deg;
|
||||||
},
|
},
|
||||||
calculate: function(definitions, property) {
|
calculate: function(definitions, property) {
|
||||||
var a = definitions.actions[getFullDegrees(property)];
|
return definitions.actions[getFullDegrees(property)];
|
||||||
a[0].action += " rising";
|
|
||||||
return a;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
function getFullDegrees(property) {
|
function getFullDegrees(input) {
|
||||||
|
|
||||||
|
var property = SL.Astro.Logy.zodToDeg(SL.Astro.Logy.degToZod(input));
|
||||||
|
|
||||||
// Aries
|
// Aries
|
||||||
if ( property < 3 ) return 37;
|
if ( property < 3 ) return 37;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue