Skip to content

Commit

Permalink
AI: Allow to destroy Wooden Tongs if more then 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcurus committed Jan 17, 2024
1 parent 6b6c7d9 commit 4bf66c0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions openlife/settings/ServerSettings.hx
Original file line number Diff line number Diff line change
Expand Up @@ -2984,10 +2984,10 @@ class ServerSettings {
var trans = transitions.getTransition(334, 2145); // Steel Axe + Empty Banana Plant
trans.aiShouldIgnore = true;
trans.hungryWorkCost = 10;
var trans = transitions.getTransition(334, 239); // Steel Axe + Wooden Tongs
trans.aiShouldIgnore = true;
var trans = transitions.getTransition(71, 239); // Stone Hatchet + Wooden Tongs
trans.aiShouldIgnore = true;
// var trans = transitions.getTransition(334, 239); // Steel Axe + Wooden Tongs
// trans.aiShouldIgnore = true;
// var trans = transitions.getTransition(71, 239); // Stone Hatchet + Wooden Tongs
// trans.aiShouldIgnore = true;
var trans = transitions.getTransition(334, 583); // Steel Axe + Knitting Needles
trans.aiShouldIgnore = true;
var trans = transitions.getTransition(71, 583); // Stone Hatchet + Knitting Needles
Expand Down Expand Up @@ -3890,6 +3890,8 @@ class ServerSettings {

LimitObject(236, 241, 5); // Limit Clay Plate 236 // Fired Plate in Wooden Tongs 241

LimitObject(236, 241, 5); // Limit Clay Plate 236 // Fired Plate in Wooden Tongs 241

LimitObject(183, 180, 20); // Rabbit Fur 183 // Dead Rabbit 180

LimitObject(132, 132, 20); // Yew Branch 132
Expand Down Expand Up @@ -3984,6 +3986,11 @@ class ServerSettings {
}

private static function LimitTransitionsIfTooFewOfObject() {
// Steel Axe + Wooden Tongs
LimitTransitionIfMinNotReached(334, 239, 239, 3);
// Stone Hatchet + Wooden Tongs
LimitTransitionIfMinNotReached(71, 239, 239, 3);

// Flint Chip 135 + Yew Bow 151
LimitTransitionIfMinNotReached(135, 151, 151, 3); // Allow to destroy Bows if more than 3
// Knife 560 + Yew Bow 151
Expand Down
Binary file modified server.hl
Binary file not shown.

0 comments on commit 4bf66c0

Please sign in to comment.