Reddo vor 5 Jahren
Ursprung
Commit
aab543c0b9
2 geänderte Dateien mit 7 neuen und 12 gelöschten Zeilen
  1. 7 12
      content/main.ts
  2. 0 0
      dist/The Obelisk.html

+ 7 - 12
content/main.ts

@@ -241,7 +241,7 @@ for (let i = 0; i < 0; i++) {
 }
 let randomOrc;
 let randomOrc2;
-for (let i = 0; i < 800; i++) {
+for (let i = 0; i < 8; i++) {
     let orc = new OrcDebugger();
     randomOrc = orc;
     if (randomOrc2 == undefined) {
@@ -324,17 +324,17 @@ spitroast.addUnit()
 
 (new CombatDescription("Allranging Fists"))
     .setDescriptionFunction((actor, target, weapons, markers) => {
-        let say = new Say("You attack ", new SayThe(), target, " with your fists");
+        let say = new Say(...Say.Mention(actor), " attack", target != WorldState.player ? "s " : " ", ...Say.Mention(target), " with ", ...Say.YourTheir(target) ," fists");
         if (markers.indexOf(CombatHit.MISS) != -1) {
-            say.add(", but you miss");
+            say.add(", but ", ...Say.Mention(actor), " miss");
         } else if (markers.indexOf(CombatHit.CRITICAL) != -1) {
             say.add(", it is a strong hit");
         }
 
         if (markers.indexOf(CombatResult.KNOCKED) != -1) {
-            say.add(", the strength of your attack knocks ", new SayHimHerIt(target), " on the floor.");
+            say.add(", the strength of ", ...Say.YourTheir(target) ," attack knocks ", ...Say.Mention(target) , " on the floor.");
         } else if (markers.indexOf(CombatResult.KNOCKED_OFF) != -1) {
-            say.add(", the strength of your attack knocks ", new SayHimHerIt(target), " unconscious.");
+            say.add(", the strength of ", ...Say.YourTheir(target) ," attack knocks ", ...Say.Mention(target), " unconscious.");
         } else if (markers.indexOf(CombatResult.KILLED) != -1) {
             say.add(", ", new SayHeSheIt(target), " dies.");
         } else {
@@ -355,7 +355,7 @@ spitroast.addUnit()
         let say = new Say(new SayBold(target), ": ");
 
         let action = new SayAction();
-        action.add(new SayThe(), target, " looks at ");
+        action.add("looks at ");
         if (aggressor != WorldState.player) {
             action.add(new SayThe(), aggressor)
         } else {
@@ -403,9 +403,4 @@ spitroast.addUnit()
     .setAggressor(Person)
     .setTarget(OrcDebugger)
     .addMarker(AdaptiveDifferential.FULLYADAPTIVE(AIRules.resultRetaliate, AIRules.resultHostile, AIRules.resultNotHostile))
-    .addMarker(AdaptiveDifferential.FULLYADAPTIVE(AIRules.actionMin, AIRules.actionMed, AIRules.actionMax));
-
-
-let outsideRoom = new Room("Outside Room");
-window['outsideRoom'] = outsideRoom;
-window['player'] = WorldState.player;
+    .addMarker(AdaptiveDifferential.FULLYADAPTIVE(AIRules.actionMin, AIRules.actionMed, AIRules.actionMax));

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
dist/The Obelisk.html


Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.