mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-30 01:50:50 +01:00
Added can_swim to pets
This commit is contained in:
parent
a3df990398
commit
e264c50957
@ -15,4 +15,9 @@ ADD COLUMN `has_gotten_default_saved_searches` tinyint(1) NOT NULL DEFAULT 0 AFT
|
||||
ALTER TABLE `support_tickets`
|
||||
ADD COLUMN `group_id` int(11) NOT NULL AFTER `category`,
|
||||
ADD COLUMN `thread_id` int(11) NOT NULL AFTER `group_id`,
|
||||
ADD COLUMN `comment_id` int(11) NOT NULL AFTER `thread_id`;
|
||||
ADD COLUMN `comment_id` int(11) NOT NULL AFTER `thread_id`;
|
||||
|
||||
ALTER TABLE `pet_actions`
|
||||
ADD COLUMN `can_swim` enum('1','0') NULL DEFAULT '0' AFTER `random_actions`;
|
||||
|
||||
UPDATE `pet_actions` SET `can_swim` = '1' WHERE `pet_type` = 9 OR `pet_type` = 14 OR `pet_type` = 23 OR `pet_type` = 24 OR `pet_type` = 25 OR `pet_type` = 28 OR `pet_type` = 29 OR `pet_type` = 30 OR `pet_type` = 32;
|
@ -31,6 +31,7 @@ public class PetData implements Comparable<PetData> {
|
||||
public String[] actionsTired;
|
||||
public String[] actionsRandom;
|
||||
public THashMap<PetVocalsType, THashSet<PetVocal>> petVocals;
|
||||
public boolean canSwim;
|
||||
private int type;
|
||||
private String name;
|
||||
private List<PetCommand> petCommands;
|
||||
@ -51,6 +52,7 @@ public class PetData implements Comparable<PetData> {
|
||||
this.actionsHappy = set.getString("happy_actions").split(";");
|
||||
this.actionsTired = set.getString("tired_actions").split(";");
|
||||
this.actionsRandom = set.getString("random_actions").split(";");
|
||||
this.canSwim = set.getString("can_swim").equalsIgnoreCase("1");
|
||||
|
||||
this.reset();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user