Przeglądaj źródła

Correct some usages

Reddo 5 lat temu
rodzic
commit
d4a4c3dc2f

+ 4 - 4
app/Elements/Classes/Say.ts

@@ -65,7 +65,7 @@ class Say {
         }
     }
 
-    public Article (target : Thing, uppercase = true) {
+    public static Article (target : Thing, uppercase = true) {
         let arr = [];
         if (target.isUnique()) {
             arr.push(new SayThe(uppercase));
@@ -82,7 +82,7 @@ class Say {
      * @param uppercase
      * @constructor
      */
-    public Subject (target : Thing, uppercase = true) {
+    public static Subject (target : Thing, uppercase = true) {
         return new SayHeSheIt(target, uppercase);
     }
 
@@ -92,7 +92,7 @@ class Say {
      * @param uppercase
      * @constructor
      */
-    public Object (target : Thing, uppercase = true) {
+    public static Object (target : Thing, uppercase = true) {
         return new SayHimHerIt(target, uppercase);
     }
 
@@ -102,7 +102,7 @@ class Say {
      * @param uppercase
      * @constructor
      */
-    public Possessive (target : Thing, uppercase = true) {
+    public static Possessive (target : Thing, uppercase = true) {
         return new SayHisHersIts(target, uppercase);
     }
 

+ 1 - 1
app/Elements/Classes/Say/SayHeSheIt.ts

@@ -19,7 +19,7 @@ class SayHeSheIt extends Say {
             if (next instanceof Humanoid) {
                 let gender = next.getGenderValue();
                 if (WorldState.isPlayer(next)) {
-                    this.node.nodeValue = "I";
+                    this.node.nodeValue = "you";
                 } else if (gender.genderValueCorrected > 65) {
                     this.node.nodeValue = "she ";
                 } else if (gender.genderValueCorrected < 35) {

+ 1 - 1
app/Elements/Classes/Say/SayHisHersIts.ts

@@ -19,7 +19,7 @@ class SayHisHersIts extends Say {
             if (next instanceof Humanoid) {
                 let gender = next.getGenderValue();
                 if (WorldState.isPlayer(next)) {
-                    this.node.nodeValue = "my";
+                    this.node.nodeValue = "your ";
                 } else if (gender.genderValueCorrected > 65) {
                     this.node.nodeValue = "hers ";
                 } else if (gender.genderValueCorrected < 35) {